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