Skip to content

Commit 1ec90f4

Browse files
hauntsaninjamiss-islington
authored andcommitted
bpo-39493: Fix definition of IO.closed in typing.py (pythonGH-18265)
(cherry picked from commit 2e6569b) Co-authored-by: Shantanu <[email protected]>
1 parent cf0645a commit 1ec90f4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Lib/typing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,7 @@ def name(self) -> str:
15091509
def close(self) -> None:
15101510
pass
15111511

1512+
@property
15121513
@abstractmethod
15131514
def closed(self) -> bool:
15141515
pass
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Mark ``typing.IO.closed`` as a property

0 commit comments

Comments
 (0)