module documentation

Test the runtime usage of numpy.typing.

Class TestRuntimeProtocol Undocumented
Class TypeTup Undocumented
Function test_get_args Test typing.get_args.
Function test_get_origin Test typing.get_origin.
Function test_get_type_hints Test typing.get_type_hints.
Function test_get_type_hints_str Test typing.get_type_hints with string-representation of types.
Function test_keys Test that TYPES.keys() and numpy.typing.__all__ are synced.
Constant PROTOCOLS Undocumented
Constant TYPES Undocumented
Variable NDArrayTup Undocumented
@pytest.mark.parametrize('name,tup', TYPES.items(), ids=TYPES.keys())
def test_get_args(name: type, tup: TypeTup): (source)
@pytest.mark.parametrize('name,tup', TYPES.items(), ids=TYPES.keys())
def test_get_origin(name: type, tup: TypeTup): (source)
@pytest.mark.parametrize('name,tup', TYPES.items(), ids=TYPES.keys())
def test_get_type_hints(name: type, tup: TypeTup): (source)
@pytest.mark.parametrize('name,tup', TYPES.items(), ids=TYPES.keys())
def test_get_type_hints_str(name: type, tup: TypeTup): (source)

Test typing.get_type_hints with string-representation of types.

def test_keys(): (source)

Test that TYPES.keys() and numpy.typing.__all__ are synced.

Undocumented

Value
{'_SupportsDType': (_npt._SupportsDType, np.int64(1)),
 '_SupportsArray': (_npt._SupportsArray, np.arange(10)),
 '_SupportsArrayFunc': (_npt._SupportsArrayFunc, np.arange(10)),
 '_NestedSequence': (_npt._NestedSequence, [1])}

Undocumented

Value
{'ArrayLike': TypeTup(npt.ArrayLike, npt.ArrayLike.__args__, Union),
 'DTypeLike': TypeTup(npt.DTypeLike, npt.DTypeLike.__args__, Union),
 'NBitBase': TypeTup(npt.NBitBase, (), None),
 'NDArray': NDArrayTup}
NDArrayTup = (source)

Undocumented