From c68515d7600bc312e1eb69433c54f15ee6096e53 Mon Sep 17 00:00:00 2001 From: PrettyWood Date: Sun, 17 Jan 2021 23:20:25 +0100 Subject: [PATCH] chore: improve test --- tests/test_typing.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_typing.py b/tests/test_typing.py index 235223d6661..d0d99125e0e 100644 --- a/tests/test_typing.py +++ b/tests/test_typing.py @@ -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))