textwrap.{wrap, fill}: max_lines defaults to None (#9775)

All keyword arguments are delegated to `TextWrapper.__init__`: 59e86caca8/Lib/textwrap.py (L373-L396)
This commit is contained in:
Alex Waygood
2023-02-20 18:39:48 +00:00
committed by GitHub
parent 14ab089bd5
commit 0878173943

View File

@@ -64,7 +64,7 @@ def wrap(
break_long_words: bool = ...,
break_on_hyphens: bool = ...,
drop_whitespace: bool = ...,
max_lines: int = ...,
max_lines: int | None = None,
placeholder: str = ...,
) -> list[str]: ...
def fill(
@@ -80,7 +80,7 @@ def fill(
break_long_words: bool = ...,
break_on_hyphens: bool = ...,
drop_whitespace: bool = ...,
max_lines: int = ...,
max_lines: int | None = None,
placeholder: str = ...,
) -> str: ...
def shorten(