From cecb64b59fbd3b74a4354f2e3156368e92237ec7 Mon Sep 17 00:00:00 2001 From: TrueBrain Date: Sat, 5 Nov 2016 23:02:35 +0100 Subject: [PATCH] In TextIO, 'errors' is Optional (#665) --- stdlib/2/typing.pyi | 2 +- stdlib/3/typing.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2/typing.pyi b/stdlib/2/typing.pyi index 314743c82..e3ad6bd8c 100644 --- a/stdlib/2/typing.pyi +++ b/stdlib/2/typing.pyi @@ -275,7 +275,7 @@ class TextIO(IO[unicode]): @property def encoding(self) -> str: ... @property - def errors(self) -> str: ... + def errors(self) -> Optional[str]: ... @property def line_buffering(self) -> bool: ... @property diff --git a/stdlib/3/typing.pyi b/stdlib/3/typing.pyi index 5f232656e..4d05394f3 100644 --- a/stdlib/3/typing.pyi +++ b/stdlib/3/typing.pyi @@ -359,7 +359,7 @@ class TextIO(IO[str]): @property def encoding(self) -> str: ... @property - def errors(self) -> str: ... + def errors(self) -> Optional[str]: ... @property def line_buffering(self) -> int: ... # int on PyPy, bool on CPython @property