Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 58 additions & 58 deletions src/_numtype/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -481,17 +481,17 @@ ToCLongDouble_1nd = TypeAliasType("ToCLongDouble_1nd", _ToArray_1nd[np.clongdoub
ToCLongDouble_2nd = TypeAliasType("ToCLongDouble_2nd", _ToArray_2nd[np.clongdouble])
ToCLongDouble_3nd = TypeAliasType("ToCLongDouble_3nd", _ToArray_3nd[np.clongdouble])

ToCFloating_nd = TypeAliasType("ToCFloating_nd", _ToArray_nd[np.complexfloating, Is[complex]])
ToCFloating_0d = TypeAliasType("ToCFloating_0d", _ToArray_0d[np.complexfloating, Is[complex]])
ToCFloating_1d = TypeAliasType("ToCFloating_1d", _ToArray_1d[np.complexfloating, Is[complex]])
ToCFloating_2d = TypeAliasType("ToCFloating_2d", _ToArray_2d[np.complexfloating, Is[complex]])
ToCFloating_3d = TypeAliasType("ToCFloating_3d", _ToArray_3d[np.complexfloating, Is[complex]])
ToCFloating_1ds = TypeAliasType("ToCFloating_1ds", _ToArray_1ds[np.complexfloating, Is[complex]])
ToCFloating_2ds = TypeAliasType("ToCFloating_2ds", _ToArray_2ds[np.complexfloating, Is[complex]])
ToCFloating_3ds = TypeAliasType("ToCFloating_3ds", _ToArray_3ds[np.complexfloating, Is[complex]])
ToCFloating_1nd = TypeAliasType("ToCFloating_1nd", _ToArray_1nd[np.complexfloating, Is[complex]])
ToCFloating_2nd = TypeAliasType("ToCFloating_2nd", _ToArray_2nd[np.complexfloating, Is[complex]])
ToCFloating_3nd = TypeAliasType("ToCFloating_3nd", _ToArray_3nd[np.complexfloating, Is[complex]])
ToComplex_nd = TypeAliasType("ToComplex_nd", _ToArray_nd[np.complexfloating, Is[complex]])
ToComplex_0d = TypeAliasType("ToComplex_0d", _ToArray_0d[np.complexfloating, Is[complex]])
ToComplex_1d = TypeAliasType("ToComplex_1d", _ToArray_1d[np.complexfloating, Is[complex]])
ToComplex_2d = TypeAliasType("ToComplex_2d", _ToArray_2d[np.complexfloating, Is[complex]])
ToComplex_3d = TypeAliasType("ToComplex_3d", _ToArray_3d[np.complexfloating, Is[complex]])
ToComplex_1ds = TypeAliasType("ToComplex_1ds", _ToArray_1ds[np.complexfloating, Is[complex]])
ToComplex_2ds = TypeAliasType("ToComplex_2ds", _ToArray_2ds[np.complexfloating, Is[complex]])
ToComplex_3ds = TypeAliasType("ToComplex_3ds", _ToArray_3ds[np.complexfloating, Is[complex]])
ToComplex_1nd = TypeAliasType("ToComplex_1nd", _ToArray_1nd[np.complexfloating, Is[complex]])
ToComplex_2nd = TypeAliasType("ToComplex_2nd", _ToArray_2nd[np.complexfloating, Is[complex]])
ToComplex_3nd = TypeAliasType("ToComplex_3nd", _ToArray_3nd[np.complexfloating, Is[complex]])

# integers, real- and complex floats
ToNumber_nd = TypeAliasType("ToNumber_nd", _ToArray_nd[np.number, _PyNumber])
Expand Down Expand Up @@ -613,17 +613,17 @@ ToObject_2nd = TypeAliasType("ToObject_2nd", _ToArray_2nd[np.object_, _PyObject]
ToObject_3nd = TypeAliasType("ToObject_3nd", _ToArray_3nd[np.object_, _PyObject])

# any scalar
ToAny_nd = TypeAliasType("ToAny_nd", _ToArray_nd[np.generic, object])
ToAny_0d = TypeAliasType("ToAny_0d", _ToArray_0d[np.generic, object])
ToAny_1d = TypeAliasType("ToAny_1d", _ToArray_1d[np.generic, object])
ToAny_2d = TypeAliasType("ToAny_2d", _ToArray_2d[np.generic, object])
ToAny_3d = TypeAliasType("ToAny_3d", _ToArray_3d[np.generic, object])
ToAny_1ds = TypeAliasType("ToAny_1ds", _ToArray_1ds[np.generic, object])
ToAny_2ds = TypeAliasType("ToAny_2ds", _ToArray_2ds[np.generic, object])
ToAny_3ds = TypeAliasType("ToAny_3ds", _ToArray_3ds[np.generic, object])
ToAny_1nd = TypeAliasType("ToAny_1nd", _ToArray_1nd[np.generic, object])
ToAny_2nd = TypeAliasType("ToAny_2nd", _ToArray_2nd[np.generic, object])
ToAny_3nd = TypeAliasType("ToAny_3nd", _ToArray_3nd[np.generic, object])
ToGeneric_nd = TypeAliasType("ToGeneric_nd", _ToArray_nd[np.generic, complex | bytes | str])
ToGeneric_0d = TypeAliasType("ToGeneric_0d", _ToArray_0d[np.generic, complex | bytes | str])
ToGeneric_1d = TypeAliasType("ToGeneric_1d", _ToArray_1d[np.generic, complex | bytes | str])
ToGeneric_2d = TypeAliasType("ToGeneric_2d", _ToArray_2d[np.generic, complex | bytes | str])
ToGeneric_3d = TypeAliasType("ToGeneric_3d", _ToArray_3d[np.generic, complex | bytes | str])
ToGeneric_1ds = TypeAliasType("ToGeneric_1ds", _ToArray_1ds[np.generic, complex | bytes | str])
ToGeneric_2ds = TypeAliasType("ToGeneric_2ds", _ToArray_2ds[np.generic, complex | bytes | str])
ToGeneric_3ds = TypeAliasType("ToGeneric_3ds", _ToArray_3ds[np.generic, complex | bytes | str])
ToGeneric_1nd = TypeAliasType("ToGeneric_1nd", _ToArray_1nd[np.generic, complex | bytes | str])
ToGeneric_2nd = TypeAliasType("ToGeneric_2nd", _ToArray_2nd[np.generic, complex | bytes | str])
ToGeneric_3nd = TypeAliasType("ToGeneric_3nd", _ToArray_3nd[np.generic, complex | bytes | str])

###
# Coercible (overlapping) scalar- and array-likes
Expand Down Expand Up @@ -720,18 +720,18 @@ CoUIntP_1nd = TypeAliasType("CoUIntP_1nd", _ToArray_1nd[_CoUIntP, bool])
CoUIntP_2nd = TypeAliasType("CoUIntP_2nd", _ToArray_2nd[_CoUIntP, bool])
CoUIntP_3nd = TypeAliasType("CoUIntP_3nd", _ToArray_3nd[_CoUIntP, bool])

_CoULongLong: TypeAlias = np.unsignedinteger | _ToBool
CoULongLong_nd = TypeAliasType("CoULongLong_nd", _ToArray_nd[_CoULongLong, bool])
CoULongLong_0d = TypeAliasType("CoULongLong_0d", _ToArray_0d[_CoULongLong, bool])
CoULongLong_1d = TypeAliasType("CoULongLong_1d", _ToArray_1d[_CoULongLong, bool])
CoULongLong_2d = TypeAliasType("CoULongLong_2d", _ToArray_2d[_CoULongLong, bool])
CoULongLong_3d = TypeAliasType("CoULongLong_3d", _ToArray_3d[_CoULongLong, bool])
CoULongLong_1ds = TypeAliasType("CoULongLong_1ds", _ToArray_1ds[_CoULongLong, bool])
CoULongLong_2ds = TypeAliasType("CoULongLong_2ds", _ToArray_2ds[_CoULongLong, bool])
CoULongLong_3ds = TypeAliasType("CoULongLong_3ds", _ToArray_3ds[_CoULongLong, bool])
CoULongLong_1nd = TypeAliasType("CoULongLong_1nd", _ToArray_1nd[_CoULongLong, bool])
CoULongLong_2nd = TypeAliasType("CoULongLong_2nd", _ToArray_2nd[_CoULongLong, bool])
CoULongLong_3nd = TypeAliasType("CoULongLong_3nd", _ToArray_3nd[_CoULongLong, bool])
_CoUInteger: TypeAlias = np.unsignedinteger | _ToBool
CoUInteger_nd = TypeAliasType("CoUInteger_nd", _ToArray_nd[_CoUInteger, bool])
CoUInteger_0d = TypeAliasType("CoUInteger_0d", _ToArray_0d[_CoUInteger, bool])
CoUInteger_1d = TypeAliasType("CoUInteger_1d", _ToArray_1d[_CoUInteger, bool])
CoUInteger_2d = TypeAliasType("CoUInteger_2d", _ToArray_2d[_CoUInteger, bool])
CoUInteger_3d = TypeAliasType("CoUInteger_3d", _ToArray_3d[_CoUInteger, bool])
CoUInteger_1ds = TypeAliasType("CoUInteger_1ds", _ToArray_1ds[_CoUInteger, bool])
CoUInteger_2ds = TypeAliasType("CoUInteger_2ds", _ToArray_2ds[_CoUInteger, bool])
CoUInteger_3ds = TypeAliasType("CoUInteger_3ds", _ToArray_3ds[_CoUInteger, bool])
CoUInteger_1nd = TypeAliasType("CoUInteger_1nd", _ToArray_1nd[_CoUInteger, bool])
CoUInteger_2nd = TypeAliasType("CoUInteger_2nd", _ToArray_2nd[_CoUInteger, bool])
CoUInteger_3nd = TypeAliasType("CoUInteger_3nd", _ToArray_3nd[_CoUInteger, bool])

# signed integers
_CoInt8: TypeAlias = np.int8 | _ToBool
Expand Down Expand Up @@ -812,18 +812,18 @@ CoIntP_1nd = TypeAliasType("CoIntP_1nd", _ToArray_1nd[_CoIntP, int])
CoIntP_2nd = TypeAliasType("CoIntP_2nd", _ToArray_2nd[_CoIntP, int])
CoIntP_3nd = TypeAliasType("CoIntP_3nd", _ToArray_3nd[_CoIntP, int])

_CoLongLong: TypeAlias = np.signedinteger | _CoUInt32
CoLongLong_nd = TypeAliasType("CoLongLong_nd", _ToArray_nd[_CoLongLong, int])
CoLongLong_0d = TypeAliasType("CoLongLong_0d", _ToArray_0d[_CoLongLong, int])
CoLongLong_1d = TypeAliasType("CoLongLong_1d", _ToArray_1d[_CoLongLong, int])
CoLongLong_2d = TypeAliasType("CoLongLong_2d", _ToArray_2d[_CoLongLong, int])
CoLongLong_3d = TypeAliasType("CoLongLong_3d", _ToArray_3d[_CoLongLong, int])
CoLongLong_1ds = TypeAliasType("CoLongLong_1ds", _ToArray_1ds[_CoLongLong, int])
CoLongLong_2ds = TypeAliasType("CoLongLong_2ds", _ToArray_2ds[_CoLongLong, int])
CoLongLong_3ds = TypeAliasType("CoLongLong_3ds", _ToArray_3ds[_CoLongLong, int])
CoLongLong_1nd = TypeAliasType("CoLongLong_1nd", _ToArray_1nd[_CoLongLong, int])
CoLongLong_2nd = TypeAliasType("CoLongLong_2nd", _ToArray_2nd[_CoLongLong, int])
CoLongLong_3nd = TypeAliasType("CoLongLong_3nd", _ToArray_3nd[_CoLongLong, int])
_CoSInteger: TypeAlias = np.signedinteger | _CoUInt32
CoSInteger_nd = TypeAliasType("CoSInteger_nd", _ToArray_nd[_CoSInteger, int])
CoSInteger_0d = TypeAliasType("CoSInteger_0d", _ToArray_0d[_CoSInteger, int])
CoSInteger_1d = TypeAliasType("CoSInteger_1d", _ToArray_1d[_CoSInteger, int])
CoSInteger_2d = TypeAliasType("CoSInteger_2d", _ToArray_2d[_CoSInteger, int])
CoSInteger_3d = TypeAliasType("CoSInteger_3d", _ToArray_3d[_CoSInteger, int])
CoSInteger_1ds = TypeAliasType("CoSInteger_1ds", _ToArray_1ds[_CoSInteger, int])
CoSInteger_2ds = TypeAliasType("CoSInteger_2ds", _ToArray_2ds[_CoSInteger, int])
CoSInteger_3ds = TypeAliasType("CoSInteger_3ds", _ToArray_3ds[_CoSInteger, int])
CoSInteger_1nd = TypeAliasType("CoSInteger_1nd", _ToArray_1nd[_CoSInteger, int])
CoSInteger_2nd = TypeAliasType("CoSInteger_2nd", _ToArray_2nd[_CoSInteger, int])
CoSInteger_3nd = TypeAliasType("CoSInteger_3nd", _ToArray_3nd[_CoSInteger, int])

_CoInteger: TypeAlias = np.integer | _ToBool
CoInteger_nd = TypeAliasType("CoInteger_nd", _ToArray_nd[_CoInteger, int])
Expand Down Expand Up @@ -919,18 +919,18 @@ CoComplex128_1nd = TypeAliasType("CoComplex128_1nd", _ToArray_1nd[_CoComplex128,
CoComplex128_2nd = TypeAliasType("CoComplex128_2nd", _ToArray_2nd[_CoComplex128, complex])
CoComplex128_3nd = TypeAliasType("CoComplex128_3nd", _ToArray_3nd[_CoComplex128, complex])

_CoNumber: TypeAlias = np.number | _ToBool
CoNumber_nd = TypeAliasType("CoNumber_nd", _ToArray_nd[_CoNumber, complex])
CoNumber_0d = TypeAliasType("CoNumber_0d", _ToArray_0d[_CoNumber, complex])
CoNumber_1d = TypeAliasType("CoNumber_1d", _ToArray_1d[_CoNumber, complex])
CoNumber_2d = TypeAliasType("CoNumber_2d", _ToArray_2d[_CoNumber, complex])
CoNumber_3d = TypeAliasType("CoNumber_3d", _ToArray_3d[_CoNumber, complex])
CoNumber_1ds = TypeAliasType("CoNumber_1ds", _ToArray_1ds[_CoNumber, complex])
CoNumber_2ds = TypeAliasType("CoNumber_2ds", _ToArray_2ds[_CoNumber, complex])
CoNumber_3ds = TypeAliasType("CoNumber_3ds", _ToArray_3ds[_CoNumber, complex])
CoNumber_1nd = TypeAliasType("CoNumber_1nd", _ToArray_1nd[_CoNumber, complex])
CoNumber_2nd = TypeAliasType("CoNumber_2nd", _ToArray_2nd[_CoNumber, complex])
CoNumber_3nd = TypeAliasType("CoNumber_3nd", _ToArray_3nd[_CoNumber, complex])
_CoComplex: TypeAlias = np.number | _ToBool
CoComplex_nd = TypeAliasType("CoComplex_nd", _ToArray_nd[_CoComplex, complex])
CoComplex_0d = TypeAliasType("CoComplex_0d", _ToArray_0d[_CoComplex, complex])
CoComplex_1d = TypeAliasType("CoComplex_1d", _ToArray_1d[_CoComplex, complex])
CoComplex_2d = TypeAliasType("CoComplex_2d", _ToArray_2d[_CoComplex, complex])
CoComplex_3d = TypeAliasType("CoComplex_3d", _ToArray_3d[_CoComplex, complex])
CoComplex_1ds = TypeAliasType("CoComplex_1ds", _ToArray_1ds[_CoComplex, complex])
CoComplex_2ds = TypeAliasType("CoComplex_2ds", _ToArray_2ds[_CoComplex, complex])
CoComplex_3ds = TypeAliasType("CoComplex_3ds", _ToArray_3ds[_CoComplex, complex])
CoComplex_1nd = TypeAliasType("CoComplex_1nd", _ToArray_1nd[_CoComplex, complex])
CoComplex_2nd = TypeAliasType("CoComplex_2nd", _ToArray_2nd[_CoComplex, complex])
CoComplex_3nd = TypeAliasType("CoComplex_3nd", _ToArray_3nd[_CoComplex, complex])

# temporal
_CoTimeDelta: TypeAlias = _ToTimeDelta | _CoInteger
Expand Down
Loading
Loading