bpo-39493: Fix definition of IO.closed in typing.py (GH-18265)
(cherry picked from commit 2e6569b669
)
Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
This commit is contained in:
parent
696d2324cf
commit
58076df0c5
|
@ -1848,6 +1848,7 @@ class IO(Generic[AnyStr]):
|
|||
def close(self) -> None:
|
||||
pass
|
||||
|
||||
@property
|
||||
@abstractmethod
|
||||
def closed(self) -> bool:
|
||||
pass
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Mark ``typing.IO.closed`` as a property
|
Loading…
Reference in New Issue