update math and gzip stubs for Python 3.8 (#4710)

I ran stubtest and spotted 2 things missing in 3.8 stdlib

- added BadGzipFile exception for gzip:
https://docs.python.org/3/library/gzip.html#gzip.BadGzipFile

- added math.perm() method:
https://docs.python.org/3/library/math.html#math.perm
This commit is contained in:
Vincent Barbaresi
2020-10-26 03:58:09 +01:00
committed by GitHub
parent 1dd1b701c9
commit de98690e72
2 changed files with 7 additions and 1 deletions

View File

@@ -43,6 +43,9 @@ class _PaddedFile:
def seek(self, off: int) -> int: ...
def seekable(self) -> bool: ...
if sys.version_info >= (3, 8):
class BadGzipFile(OSError): ...
class GzipFile(_compression.BaseStream):
myfileobj: Optional[IO[bytes]]
mode: str