In TextIO, 'errors' is Optional (#665)

This commit is contained in:
TrueBrain
2016-11-05 23:02:35 +01:00
committed by Guido van Rossum
parent 3452ff5bbd
commit cecb64b59f
2 changed files with 2 additions and 2 deletions

View File

@@ -359,7 +359,7 @@ class TextIO(IO[str]):
@property
def encoding(self) -> str: ...
@property
def errors(self) -> str: ...
def errors(self) -> Optional[str]: ...
@property
def line_buffering(self) -> int: ... # int on PyPy, bool on CPython
@property