mirror of https://github.com/python/cpython
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):
|
def isatty(self):
|
||||||
return self.buffer.isatty()
|
return self.buffer.isatty()
|
||||||
|
|
||||||
def write(self, s: str):
|
def write(self, s):
|
||||||
if self.closed:
|
if self.closed:
|
||||||
raise ValueError("write to closed file")
|
raise ValueError("write to closed file")
|
||||||
if not isinstance(s, str):
|
if not isinstance(s, str):
|
||||||
|
|
Loading…
Reference in New Issue