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 authored and GitHub committed 2020-10-25 19:58:09 -07:00
1 parent 1dd1b701c9
commit de98690e72
2 files changed
+7 -1

No files matched your search

+3
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