Skip to content

Commit de4d436

Browse files
Add stub for TextIOWrapper.reconfigure() (#4035)
1 parent 6fc8828 commit de4d436

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

stdlib/3/io.pyi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,16 @@ class TextIOWrapper(TextIO):
171171
line_buffering: bool = ...,
172172
write_through: bool = ...
173173
) -> None: ...
174+
if sys.version_info >= (3, 7):
175+
def reconfigure(
176+
self,
177+
*,
178+
encoding: Optional[str] = ...,
179+
errors: Optional[str] = ...,
180+
newline: Optional[str] = ...,
181+
line_buffering: Optional[bool] = ...,
182+
write_through: Optional[bool] = ...
183+
) -> None: ...
174184
# copied from IOBase
175185
def __exit__(self, t: Optional[Type[BaseException]] = ..., value: Optional[BaseException] = ...,
176186
traceback: Optional[TracebackType] = ...) -> Optional[bool]: ...

0 commit comments

Comments
 (0)