You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
632 B
Python
20 lines
632 B
Python
"""A module with the precisions of platform-specific `~numpy.number`s."""
|
|
|
|
from typing import TypeAlias
|
|
|
|
from ._nbit_base import _8Bit, _16Bit, _32Bit, _64Bit, _96Bit, _128Bit
|
|
|
|
# To-be replaced with a `npt.NBitBase` subclass by numpy's mypy plugin
|
|
_NBitByte: TypeAlias = _8Bit
|
|
_NBitShort: TypeAlias = _16Bit
|
|
_NBitIntC: TypeAlias = _32Bit
|
|
_NBitIntP: TypeAlias = _32Bit | _64Bit
|
|
_NBitInt: TypeAlias = _NBitIntP
|
|
_NBitLong: TypeAlias = _32Bit | _64Bit
|
|
_NBitLongLong: TypeAlias = _64Bit
|
|
|
|
_NBitHalf: TypeAlias = _16Bit
|
|
_NBitSingle: TypeAlias = _32Bit
|
|
_NBitDouble: TypeAlias = _64Bit
|
|
_NBitLongDouble: TypeAlias = _64Bit | _96Bit | _128Bit
|