diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-01-29 21:42:38 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 21:42:38 -0800 |
commit | 58076df0c59677111dc77b72852cb2a313a2ef91 (patch) | |
tree | 5f90a80bfc6fcaad23764ca781fd18de7e1e54f4 | |
parent | 696d2324cf2a54e20e8d6a6739fa97ba815a8be9 (diff) | |
download | cpython-git-58076df0c59677111dc77b72852cb2a313a2ef91.tar.gz |
bpo-39493: Fix definition of IO.closed in typing.py (GH-18265)
(cherry picked from commit 2e6569b6692298fcc9aae0df3eb3181adb2a5099)
Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
-rw-r--r-- | Lib/typing.py | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-01-30-01-13-19.bpo-39493.CbFRi7.rst | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Lib/typing.py b/Lib/typing.py index 69f6d98734..83d310f3c0 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -1848,6 +1848,7 @@ class IO(Generic[AnyStr]): def close(self) -> None: pass + @property @abstractmethod def closed(self) -> bool: pass diff --git a/Misc/NEWS.d/next/Library/2020-01-30-01-13-19.bpo-39493.CbFRi7.rst b/Misc/NEWS.d/next/Library/2020-01-30-01-13-19.bpo-39493.CbFRi7.rst new file mode 100644 index 0000000000..b676629a44 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-01-30-01-13-19.bpo-39493.CbFRi7.rst @@ -0,0 +1 @@ +Mark ``typing.IO.closed`` as a property
\ No newline at end of file |