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

@@ -1,5 +1,5 @@
import sys
from typing import Iterable, SupportsFloat, SupportsInt, Tuple, overload
from typing import Iterable, Optional, SupportsFloat, SupportsInt, Tuple, overload
e: float
pi: float
@@ -94,6 +94,9 @@ def modf(__x: SupportsFloat) -> Tuple[float, float]: ...
if sys.version_info >= (3, 9):
def nextafter(__x: SupportsFloat, __y: SupportsFloat) -> float: ...
if sys.version_info >= (3, 8):
def perm(__n: int, __k: Optional[int] = ...) -> int: ...
def pow(__x: SupportsFloat, __y: SupportsFloat) -> float: ...
if sys.version_info >= (3, 8):