mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 03:41:28 +08:00
In TextIO, 'errors' is Optional (#665)
This commit is contained in:
committed by
Guido van Rossum
parent
3452ff5bbd
commit
cecb64b59f
@@ -275,7 +275,7 @@ class TextIO(IO[unicode]):
|
||||
@property
|
||||
def encoding(self) -> str: ...
|
||||
@property
|
||||
def errors(self) -> str: ...
|
||||
def errors(self) -> Optional[str]: ...
|
||||
@property
|
||||
def line_buffering(self) -> bool: ...
|
||||
@property
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user