Skip to content

Commit 2e6569b

Browse files
authored
bpo-39493: Fix definition of IO.closed in typing.py (#18265)
1 parent d47d0c8 commit 2e6569b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Lib/typing.py

+1
Original file line numberDiff line numberDiff line change
@@ -1831,6 +1831,7 @@ def name(self) -> str:
18311831
def close(self) -> None:
18321832
pass
18331833

1834+
@property
18341835
@abstractmethod
18351836
def closed(self) -> bool:
18361837
pass
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Mark ``typing.IO.closed`` as a property

0 commit comments

Comments
 (0)