Skip to content

Commit 8e89faa

Browse files
WillAydsrittau
authored andcommitted
Added Optional (#3125)
Fixes #3124
1 parent 3ad3ed8 commit 8e89faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/3/io.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class TextIOWrapper(TextIO):
159159
def __init__(
160160
self,
161161
buffer: IO[bytes],
162-
encoding: str = ...,
162+
encoding: Optional[str] = ...,
163163
errors: Optional[str] = ...,
164164
newline: Optional[str] = ...,
165165
line_buffering: bool = ...,

0 commit comments

Comments
 (0)