bpo-39493: Fix definition of IO.closed in typing.py (#18265)
This commit is contained in:
parent
d47d0c8e9f
commit
2e6569b669
|
@ -1831,6 +1831,7 @@ class IO(Generic[AnyStr]):
|
||||||
def close(self) -> None:
|
def close(self) -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@property
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def closed(self) -> bool:
|
def closed(self) -> bool:
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Mark ``typing.IO.closed`` as a property
|
Loading…
Reference in New Issue