Issue 10899: Remove function type annotations from the stdlib

This commit is contained in:
Raymond Hettinger 2011-01-13 02:52:26 +00:00
parent cd92f37582
commit 00fa03900c
1 changed files with 1 additions and 1 deletions

View File

@ -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):