mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
clean python 3 specific stuff from stdlib/@python2 stubs (#5451)
This commit is contained in:
@@ -3,13 +3,6 @@ from typing import SupportsComplex, SupportsFloat, Tuple, Union
|
||||
|
||||
e: float
|
||||
pi: float
|
||||
if sys.version_info >= (3, 6):
|
||||
inf: float
|
||||
infj: complex
|
||||
nan: float
|
||||
nanj: complex
|
||||
tau: float
|
||||
|
||||
_C = Union[SupportsFloat, SupportsComplex, complex]
|
||||
|
||||
def acos(__z: _C) -> complex: ...
|
||||
@@ -21,10 +14,6 @@ def atanh(__z: _C) -> complex: ...
|
||||
def cos(__z: _C) -> complex: ...
|
||||
def cosh(__z: _C) -> complex: ...
|
||||
def exp(__z: _C) -> complex: ...
|
||||
|
||||
if sys.version_info >= (3, 5):
|
||||
def isclose(a: _C, b: _C, *, rel_tol: SupportsFloat = ..., abs_tol: SupportsFloat = ...) -> bool: ...
|
||||
|
||||
def isinf(__z: _C) -> bool: ...
|
||||
def isnan(__z: _C) -> bool: ...
|
||||
def log(__x: _C, __y_obj: _C = ...) -> complex: ...
|
||||
@@ -37,6 +26,3 @@ def sinh(__z: _C) -> complex: ...
|
||||
def sqrt(__z: _C) -> complex: ...
|
||||
def tan(__z: _C) -> complex: ...
|
||||
def tanh(__z: _C) -> complex: ...
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
def isfinite(__z: _C) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user