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
This commit is contained in:
Alex Waygood
2023-02-20 18:39:48 +00:00
committed by GitHub
parent 14ab089bd5
commit 0878173943
+2 -2
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(