Exemplo n.º 1
0
def test_nested_generics():
    assert is_subtype(Tuple[List[float]], Tuple[list])
Exemplo n.º 2
0
def test_basic_type():
    assert is_subtype(bool, int)
Exemplo n.º 3
0
def test_tuple():
    assert is_subtype(Tuple[str, bool], tuple)
Exemplo n.º 4
0
def test_mismatched_generic_mapping():
    assert not is_subtype(Dict[int, str], Dict[int, float])
Exemplo n.º 5
0
def test_generic_mapping():
    assert is_subtype(Dict[int, str], dict)
Exemplo n.º 6
0
def test_generic_iterable():
    assert is_subtype(List[int], list)
Exemplo n.º 7
0
def test_typing_type():
    assert is_subtype(list, List)