Skip to content

Commit

Permalink
Fix 'reportCallIssues' with pyright (#2156)
Browse files Browse the repository at this point in the history
Fixes #2033.
  • Loading branch information
mvaled committed May 13, 2024
1 parent 7c1b74b commit be51acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django-stubs/db/models/enums.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ class _TextChoicesMeta(ChoicesType):
def values(self) -> list[str]: ...

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

0 comments on commit be51acb

Please sign in to comment.