Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.10/site-packages/numpy/_typing/_nbit.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

13 statements  

1"""A module with the precisions of platform-specific `~numpy.number`s.""" 

2 

3from typing import TypeAlias 

4from ._nbit_base import _8Bit, _16Bit, _32Bit, _64Bit, _96Bit, _128Bit 

5 

6 

7# To-be replaced with a `npt.NBitBase` subclass by numpy's mypy plugin 

8_NBitByte: TypeAlias = _8Bit 

9_NBitShort: TypeAlias = _16Bit 

10_NBitIntC: TypeAlias = _32Bit 

11_NBitIntP: TypeAlias = _32Bit | _64Bit 

12_NBitInt: TypeAlias = _NBitIntP 

13_NBitLong: TypeAlias = _32Bit | _64Bit 

14_NBitLongLong: TypeAlias = _64Bit 

15 

16_NBitHalf: TypeAlias = _16Bit 

17_NBitSingle: TypeAlias = _32Bit 

18_NBitDouble: TypeAlias = _64Bit 

19_NBitLongDouble: TypeAlias = _64Bit | _96Bit | _128Bit