mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Add stub for TextIOWrapper.reconfigure() (#4035)
This commit is contained in:
@@ -171,6 +171,16 @@ class TextIOWrapper(TextIO):
|
||||
line_buffering: bool = ...,
|
||||
write_through: bool = ...
|
||||
) -> None: ...
|
||||
if sys.version_info >= (3, 7):
|
||||
def reconfigure(
|
||||
self,
|
||||
*,
|
||||
encoding: Optional[str] = ...,
|
||||
errors: Optional[str] = ...,
|
||||
newline: Optional[str] = ...,
|
||||
line_buffering: Optional[bool] = ...,
|
||||
write_through: Optional[bool] = ...
|
||||
) -> None: ...
|
||||
# copied from IOBase
|
||||
def __exit__(self, t: Optional[Type[BaseException]] = ..., value: Optional[BaseException] = ...,
|
||||
traceback: Optional[TracebackType] = ...) -> Optional[bool]: ...
|
||||
|
||||
Reference in New Issue
Block a user