diff --git a/stdlib/3/textwrap.pyi b/stdlib/3/textwrap.pyi index f61f975bb..4cec8c50c 100644 --- a/stdlib/3/textwrap.pyi +++ b/stdlib/3/textwrap.pyi @@ -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: ... diff --git a/tests/stubtest_whitelists/py3_common.txt b/tests/stubtest_whitelists/py3_common.txt index 11477ce9c..3e853779a 100644 --- a/tests/stubtest_whitelists/py3_common.txt +++ b/tests/stubtest_whitelists/py3_common.txt @@ -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