Skip to content

Commit 0878173

Browse files
authored
textwrap.{wrap, fill}: max_lines defaults to None (#9775)
All keyword arguments are delegated to `TextWrapper.__init__`: https://github.com/python/cpython/blob/59e86caca812fc993c5eb7dc8ccd1508ffccba86/Lib/textwrap.py#L373-L396
1 parent 14ab089 commit 0878173

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stdlib/textwrap.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def wrap(
6464
break_long_words: bool = ...,
6565
break_on_hyphens: bool = ...,
6666
drop_whitespace: bool = ...,
67-
max_lines: int = ...,
67+
max_lines: int | None = None,
6868
placeholder: str = ...,
6969
) -> list[str]: ...
7070
def fill(
@@ -80,7 +80,7 @@ def fill(
8080
break_long_words: bool = ...,
8181
break_on_hyphens: bool = ...,
8282
drop_whitespace: bool = ...,
83-
max_lines: int = ...,
83+
max_lines: int | None = None,
8484
placeholder: str = ...,
8585
) -> str: ...
8686
def shorten(

0 commit comments

Comments
 (0)