From: Raymond Hettinger Date: Thu, 13 Jan 2011 02:52:26 +0000 (+0000) Subject: Issue 10899: Remove function type annotations from the stdlib X-Git-Tag: v3.2rc1~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00fa03900cd89d8af4ab4c6b8b0782a7d718142f;p=thirdparty%2FPython%2Fcpython.git Issue 10899: Remove function type annotations from the stdlib --- diff --git a/Lib/_pyio.py b/Lib/_pyio.py index 93626e25291f..39ddc8238468 100644 --- a/Lib/_pyio.py +++ b/Lib/_pyio.py @@ -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):