print_coercion_tables.pyi 821 B

123456789101112131415161718192021222324252627
  1. from collections.abc import Iterable
  2. from typing import ClassVar, Generic
  3. from typing_extensions import Self, TypeVar
  4. import numpy as np
  5. _VT_co = TypeVar("_VT_co", default=object, covariant=True)
  6. # undocumented
  7. class GenericObject(Generic[_VT_co]):
  8. dtype: ClassVar[np.dtype[np.object_]] = ...
  9. v: _VT_co
  10. def __init__(self, /, v: _VT_co) -> None: ...
  11. def __add__(self, other: object, /) -> Self: ...
  12. def __radd__(self, other: object, /) -> Self: ...
  13. def print_cancast_table(ntypes: Iterable[str]) -> None: ...
  14. def print_coercion_table(
  15. ntypes: Iterable[str],
  16. inputfirstvalue: int,
  17. inputsecondvalue: int,
  18. firstarray: bool,
  19. use_promote_types: bool = False,
  20. ) -> None: ...
  21. def print_new_cast_table(*, can_cast: bool = True, legacy: bool = False, flags: bool = False) -> None: ...