complete Python 3 gzip stub (#1723)

* complete python 3 gzip stub
* IOBase.closed is read-only
This commit is contained in:
Jelle Zijlstra
2017-11-09 05:56:55 -08:00
committed by Matthias Kramm
parent a1238294d7
commit eaf8972e48
2 changed files with 38 additions and 35 deletions

View File

@@ -49,7 +49,8 @@ class IOBase:
else:
def readline(self, limit: int = ...) -> bytes: ...
if sys.version_info >= (3, 2):
closed = ... # type: bool
@property
def closed(self) -> bool: ...
else:
def closed(self) -> bool: ...