From 92af307f14b8e2384bad294d1fc1cce8aca8f363 Mon Sep 17 00:00:00 2001 From: hauntsaninja <> Date: Wed, 29 Jan 2020 16:38:55 -0800 Subject: [PATCH 1/2] bpo-39493: Fix definition of IO.closed in typing.py --- Lib/typing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/typing.py b/Lib/typing.py index 7de3e346eaa79a..28c887ed35e0bb 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -1831,6 +1831,7 @@ def name(self) -> str: def close(self) -> None: pass + @property @abstractmethod def closed(self) -> bool: pass From ca3e430592a0eb85753bc1b2c96a45723d3c76d8 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Thu, 30 Jan 2020 01:13:20 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../NEWS.d/next/Library/2020-01-30-01-13-19.bpo-39493.CbFRi7.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Library/2020-01-30-01-13-19.bpo-39493.CbFRi7.rst 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 00000000000000..b676629a4414a2 --- /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