Make io._IOBase and its descendents concrete. (#1172)

This solves the issue with instantiating gzip.GzipFile() mentioned at
https://github.com/python/typeshed/pull/1160#issuecomment-294534004
This commit is contained in:
Guido van Rossum
2017-04-18 11:13:13 -07:00
committed by GitHub
parent 70f7f6cce6
commit bb0a841471
2 changed files with 24 additions and 2 deletions

View File

@@ -101,4 +101,4 @@ class TextIOWrapper(TextIO):
def __enter__(self) -> StringIO: ...
def __exit__(self, type, value, traceback) -> bool: ...
class BufferedIOBase(IOBase): ...
class BufferedIOBase(_io._BufferedIOBase, IOBase): ...