mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 08:17:07 +08:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user