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:
Miss Islington (bot) 2020-01-29 21:42:38 -08:00 committed by GitHub
parent 696d2324cf
commit 58076df0c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -1848,6 +1848,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