diff --git a/tests/assert_type/db/models/check_enums.py b/tests/assert_type/db/models/check_enums.py index 9fbdcc463..a271c1519 100644 --- a/tests/assert_type/db/models/check_enums.py +++ b/tests/assert_type/db/models/check_enums.py @@ -1,4 +1,4 @@ -from typing import Literal +from typing import Literal, List, Tuple from django.db.models import IntegerChoices, TextChoices from django.utils.translation import gettext_lazy as _ @@ -40,7 +40,7 @@ class MyTextChoices(TextChoices): # Assertions related to the metaclass: -assert_type(MyIntegerChoices.values, list[int]) -assert_type(MyIntegerChoices.choices, list[tuple[int, str]]) -assert_type(MyTextChoices.values, list[str]) -assert_type(MyTextChoices.choices, list[tuple[str, str]]) +assert_type(MyIntegerChoices.values, List[int]) +assert_type(MyIntegerChoices.choices, List[Tuple[int, str]]) +assert_type(MyTextChoices.values, List[str]) +assert_type(MyTextChoices.choices, List[Tuple[str, str]])