Skip to content

Commit 58076df

Browse files
bpo-39493: Fix definition of IO.closed in typing.py (GH-18265)
(cherry picked from commit 2e6569b) Co-authored-by: Shantanu <[email protected]>
1 parent 696d232 commit 58076df

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
@@ -1848,6 +1848,7 @@ def name(self) -> str:
18481848
def close(self) -> None:
18491849
pass
18501850

1851+
@property
18511852
@abstractmethod
18521853
def closed(self) -> bool:
18531854
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)