mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
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:
committed by
GitHub
parent
1dd1b701c9
commit
de98690e72
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user