We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 274387a commit 0294d7eCopy full SHA for 0294d7e
django-stubs/db/models/enums.pyi
@@ -69,6 +69,6 @@ class _TextChoicesMeta(ChoicesType):
69
def values(self) -> list[str]: ...
70
71
class TextChoices(Choices, StrEnum, metaclass=_TextChoicesMeta):
72
- def __new__(cls, value: str) -> Self: ...
+ def __new__(cls, value: str | tuple[str, str]) -> Self: ...
73
@_enum_property
74
def value(self) -> str: ...
0 commit comments