Project v1
This commit is contained in:
129
.vscode/Pico-W-Stub/stdlib/numbers.pyi
vendored
Normal file
129
.vscode/Pico-W-Stub/stdlib/numbers.pyi
vendored
Normal file
@@ -0,0 +1,129 @@
|
||||
# Note: these stubs are incomplete. The more complex type
|
||||
# signatures are currently omitted.
|
||||
|
||||
from abc import ABCMeta, abstractmethod
|
||||
from typing import Any, SupportsFloat, overload
|
||||
|
||||
__all__ = ["Number", "Complex", "Real", "Rational", "Integral"]
|
||||
|
||||
class Number(metaclass=ABCMeta):
|
||||
@abstractmethod
|
||||
def __hash__(self) -> int: ...
|
||||
|
||||
class Complex(Number):
|
||||
@abstractmethod
|
||||
def __complex__(self) -> complex: ...
|
||||
def __bool__(self) -> bool: ...
|
||||
@property
|
||||
@abstractmethod
|
||||
def real(self) -> Any: ...
|
||||
@property
|
||||
@abstractmethod
|
||||
def imag(self) -> Any: ...
|
||||
@abstractmethod
|
||||
def __add__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __radd__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __neg__(self) -> Any: ...
|
||||
@abstractmethod
|
||||
def __pos__(self) -> Any: ...
|
||||
def __sub__(self, other: Any) -> Any: ...
|
||||
def __rsub__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __mul__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __rmul__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __truediv__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __rtruediv__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __pow__(self, exponent: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __rpow__(self, base: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __abs__(self) -> Real: ...
|
||||
@abstractmethod
|
||||
def conjugate(self) -> Any: ...
|
||||
@abstractmethod
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
class Real(Complex, SupportsFloat):
|
||||
@abstractmethod
|
||||
def __float__(self) -> float: ...
|
||||
@abstractmethod
|
||||
def __trunc__(self) -> int: ...
|
||||
@abstractmethod
|
||||
def __floor__(self) -> int: ...
|
||||
@abstractmethod
|
||||
def __ceil__(self) -> int: ...
|
||||
@abstractmethod
|
||||
@overload
|
||||
def __round__(self, ndigits: None = None) -> int: ...
|
||||
@abstractmethod
|
||||
@overload
|
||||
def __round__(self, ndigits: int) -> Any: ...
|
||||
def __divmod__(self, other: Any) -> Any: ...
|
||||
def __rdivmod__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __floordiv__(self, other: Any) -> int: ...
|
||||
@abstractmethod
|
||||
def __rfloordiv__(self, other: Any) -> int: ...
|
||||
@abstractmethod
|
||||
def __mod__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __rmod__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __lt__(self, other: Any) -> bool: ...
|
||||
@abstractmethod
|
||||
def __le__(self, other: Any) -> bool: ...
|
||||
def __complex__(self) -> complex: ...
|
||||
@property
|
||||
def real(self) -> Any: ...
|
||||
@property
|
||||
def imag(self) -> Any: ...
|
||||
def conjugate(self) -> Any: ...
|
||||
|
||||
class Rational(Real):
|
||||
@property
|
||||
@abstractmethod
|
||||
def numerator(self) -> int: ...
|
||||
@property
|
||||
@abstractmethod
|
||||
def denominator(self) -> int: ...
|
||||
def __float__(self) -> float: ...
|
||||
|
||||
class Integral(Rational):
|
||||
@abstractmethod
|
||||
def __int__(self) -> int: ...
|
||||
def __index__(self) -> int: ...
|
||||
@abstractmethod
|
||||
def __pow__(self, exponent: Any, modulus: Any | None = None) -> Any: ...
|
||||
@abstractmethod
|
||||
def __lshift__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __rlshift__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __rshift__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __rrshift__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __and__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __rand__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __xor__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __rxor__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __or__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __ror__(self, other: Any) -> Any: ...
|
||||
@abstractmethod
|
||||
def __invert__(self) -> Any: ...
|
||||
def __float__(self) -> float: ...
|
||||
@property
|
||||
def numerator(self) -> int: ...
|
||||
@property
|
||||
def denominator(self) -> int: ...
|
||||
Reference in New Issue
Block a user