mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 13:05:14 +08:00
textwrap: various fixes (#3819)
This commit is contained in:
1 parent
3c770a7a17
commit
af09df9b48
2 files changed
+3
-6
No files matched your search
@@ -21,7 +21,7 @@ class TextWrapper:
|
||||
whitespace_trans: str = ...
|
||||
unicode_whitespace_trans: Dict[int, int] = ...
|
||||
uspace: int = ...
|
||||
x: int = ...
|
||||
x: str = ... # leaked loop variable
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -53,7 +53,7 @@ class TextWrapper:
|
||||
|
||||
|
||||
def wrap(
|
||||
text: str = ...,
|
||||
text: str,
|
||||
width: int = ...,
|
||||
*,
|
||||
initial_indent: str = ...,
|
||||
@@ -109,5 +109,5 @@ def shorten(
|
||||
def dedent(text: str) -> str:
|
||||
...
|
||||
|
||||
def indent(text: str, prefix: str, predicate: Callable[[str], bool] = ...) -> str:
|
||||
def indent(text: str, prefix: str, predicate: Optional[Callable[[str], bool]] = ...) -> str:
|
||||
...
|
||||
Reference in new issue
Block a user