mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
textwrap: various fixes (#3819)
This commit is contained in:
@@ -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:
|
||||
...
|
||||
|
||||
@@ -726,9 +726,6 @@ tempfile.SpooledTemporaryFile.__next__
|
||||
tempfile.SpooledTemporaryFile.readable
|
||||
tempfile.SpooledTemporaryFile.seekable
|
||||
tempfile.SpooledTemporaryFile.writable
|
||||
textwrap.TextWrapper.x
|
||||
textwrap.indent
|
||||
textwrap.wrap
|
||||
threading.BoundedSemaphore.__enter__
|
||||
threading.BoundedSemaphore.acquire
|
||||
threading.Condition.acquire
|
||||
|
||||
Reference in New Issue
Block a user