Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e6569b

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

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/typing.py

Lines changed: 1 addition & 0 deletions
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
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)