module documentation

Test the runtime usage of numpy.typing.
Constant TYPES Undocumented
Variable ​NDArray​Tup Undocumented
Class ​Type​Tup 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.
TYPES =

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 =

Undocumented

@pytest.mark.parametrize('name,tup', TYPES.items(), ids=TYPES.keys())
def test_get_args(name, tup):
Test typing.get_args.
Parameters
name:typeUndocumented
tup:TypeTupUndocumented
@pytest.mark.parametrize('name,tup', TYPES.items(), ids=TYPES.keys())
def test_get_origin(name, tup):
Test typing.get_origin.
Parameters
name:typeUndocumented
tup:TypeTupUndocumented
@pytest.mark.parametrize('name,tup', TYPES.items(), ids=TYPES.keys())
def test_get_type_hints(name, tup):
Test typing.get_type_hints.
Parameters
name:typeUndocumented
tup:TypeTupUndocumented
@pytest.mark.parametrize('name,tup', TYPES.items(), ids=TYPES.keys())
def test_get_type_hints_str(name, tup):
Test typing.get_type_hints with string-representation of types.
Parameters
name:typeUndocumented
tup:TypeTupUndocumented
def test_keys():
Test that TYPES.keys() and numpy.typing.__all__ are synced.