Skip to content

Commit

Permalink
chore: improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
PrettyWood committed Jan 17, 2021
1 parent 11bd960 commit 8221ce2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_typing.py
Expand Up @@ -33,10 +33,11 @@ class Employee(NamedTuple):
assert is_namedtuple(Employee) is True
assert is_namedtuple(NamedTuple('Employee', [('name', str), ('id', int)])) is True

class SubTuple(tuple):
...
class Other(tuple):
name: str
id: int

assert is_namedtuple(SubTuple) is False
assert is_namedtuple(Other) is False


@pytest.mark.parametrize('TypedDict', (t for t in ALL_TYPEDDICT_KINDS if t is not None))
Expand Down

0 comments on commit 8221ce2

Please sign in to comment.