Skip to content

Commit 0294d7e

Browse files
committed
Fix 'reportCallIssues' with pyright
Fixes typeddjango#2033.
1 parent 274387a commit 0294d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django-stubs/db/models/enums.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ class _TextChoicesMeta(ChoicesType):
6969
def values(self) -> list[str]: ...
7070

7171
class TextChoices(Choices, StrEnum, metaclass=_TextChoicesMeta):
72-
def __new__(cls, value: str) -> Self: ...
72+
def __new__(cls, value: str | tuple[str, str]) -> Self: ...
7373
@_enum_property
7474
def value(self) -> str: ...

0 commit comments

Comments
 (0)