bz2: update for py39 (#4015)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-05-16 16:52:42 -07:00
committed by GitHub
parent 3b4b2bfad5
commit 4630f245cc

View File

@@ -22,11 +22,18 @@ if sys.version_info >= (3, 3):
newline: Optional[str] = ...) -> IO[Any]: ...
class BZ2File(io.BufferedIOBase, IO[bytes]): # type: ignore # python/mypy#5027
def __init__(self,
filename: _PathOrFile,
mode: str = ...,
buffering: Optional[Any] = ...,
compresslevel: int = ...) -> None: ...
if sys.version_info >= (3, 9):
def __init__(self,
filename: _PathOrFile,
mode: str = ...,
*,
compresslevel: int = ...) -> None: ...
else:
def __init__(self,
filename: _PathOrFile,
mode: str = ...,
buffering: Optional[Any] = ...,
compresslevel: int = ...) -> None: ...
class BZ2Compressor(object):
def __init__(self, compresslevel: int = ...) -> None: ...