mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
Issue 10899: Remove function type annotations from the stdlib
This commit is contained in:
parent
cd92f37582
commit
00fa03900c
@ -1567,7 +1567,7 @@ class TextIOWrapper(TextIOBase):
|
||||
def isatty(self):
|
||||
return self.buffer.isatty()
|
||||
|
||||
def write(self, s: str):
|
||||
def write(self, s):
|
||||
if self.closed:
|
||||
raise ValueError("write to closed file")
|
||||
if not isinstance(s, str):
|
||||
|
Loading…
Reference in New Issue
Block a user