diff --git a/stdlib/3/io.pyi b/stdlib/3/io.pyi index 903fab2f6f93..e6489028151f 100644 --- a/stdlib/3/io.pyi +++ b/stdlib/3/io.pyi @@ -159,7 +159,7 @@ class TextIOWrapper(TextIO): def __init__( self, buffer: IO[bytes], - encoding: str = ..., + encoding: Optional[str] = ..., errors: Optional[str] = ..., newline: Optional[str] = ..., line_buffering: bool = ...,