bpo-39493: Fix definition of IO.closed in typing.py (#18265)

This commit is contained in:
Shantanu 2020-01-29 18:52:36 -08:00 committed by GitHub
parent d47d0c8e9f
commit 2e6569b669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -1831,6 +1831,7 @@ class IO(Generic[AnyStr]):
def close(self) -> None:
pass
@property
@abstractmethod
def closed(self) -> bool:
pass

View File

@ -0,0 +1 @@
Mark ``typing.IO.closed`` as a property