mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Continuing work towards #8988. The first five commits were created using stubdefaulter on various Python versions; the following commits were all created manually by me to fix various problems. The main things this adds that weren't present in #9501 are: - Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine) - Defaults in non-py311 branches - Defaults for float parameters - Defaults for overloads
44 lines
1.3 KiB
Python
44 lines
1.3 KiB
Python
import sys
|
|
from typing import SupportsComplex, SupportsFloat
|
|
from typing_extensions import TypeAlias
|
|
|
|
if sys.version_info >= (3, 8):
|
|
from typing import SupportsIndex
|
|
|
|
e: float
|
|
pi: float
|
|
inf: float
|
|
infj: complex
|
|
nan: float
|
|
nanj: complex
|
|
tau: float
|
|
|
|
if sys.version_info >= (3, 8):
|
|
_C: TypeAlias = SupportsFloat | SupportsComplex | SupportsIndex | complex
|
|
else:
|
|
_C: TypeAlias = SupportsFloat | SupportsComplex | complex
|
|
|
|
def acos(__z: _C) -> complex: ...
|
|
def acosh(__z: _C) -> complex: ...
|
|
def asin(__z: _C) -> complex: ...
|
|
def asinh(__z: _C) -> complex: ...
|
|
def atan(__z: _C) -> complex: ...
|
|
def atanh(__z: _C) -> complex: ...
|
|
def cos(__z: _C) -> complex: ...
|
|
def cosh(__z: _C) -> complex: ...
|
|
def exp(__z: _C) -> complex: ...
|
|
def isclose(a: _C, b: _C, *, rel_tol: SupportsFloat = 1e-09, abs_tol: SupportsFloat = 0.0) -> bool: ...
|
|
def isinf(__z: _C) -> bool: ...
|
|
def isnan(__z: _C) -> bool: ...
|
|
def log(__x: _C, __y_obj: _C = ...) -> complex: ...
|
|
def log10(__z: _C) -> complex: ...
|
|
def phase(__z: _C) -> float: ...
|
|
def polar(__z: _C) -> tuple[float, float]: ...
|
|
def rect(__r: float, __phi: float) -> complex: ...
|
|
def sin(__z: _C) -> complex: ...
|
|
def sinh(__z: _C) -> complex: ...
|
|
def sqrt(__z: _C) -> complex: ...
|
|
def tan(__z: _C) -> complex: ...
|
|
def tanh(__z: _C) -> complex: ...
|
|
def isfinite(__z: _C) -> bool: ...
|