Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions django-stubs/db/models/options.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from collections.abc import Iterable, Sequence
from typing import Any, Generic, Literal, TypeAlias, TypeVar, overload
from typing import Any, Generic, TypeAlias, TypeVar, overload

from django.apps.config import AppConfig
from django.apps.registry import Apps
Expand Down Expand Up @@ -64,7 +64,7 @@ class Options(Generic[_M]):
order_with_respect_to: str | None
db_tablespace: str
required_db_features: _ListOrTuple[str]
required_db_vendor: Literal["sqlite", "postgresql", "mysql", "oracle"] | None
required_db_vendor: str | None
meta: type | None
pk: Field
auto_field: AutoField | None
Expand Down
4 changes: 2 additions & 2 deletions ext/django_stubs_ext/db/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if TYPE_CHECKING:
from collections.abc import Sequence
from typing import ClassVar, Literal
from typing import ClassVar

from django.db.models import BaseConstraint, Index, OrderBy
from django.utils.datastructures import _ListOrTuple
Expand Down Expand Up @@ -33,7 +33,7 @@ class TypedModelMeta:
default_permissions: ClassVar[Sequence[str]] # default: ("add", "change", "delete", "view")
proxy: ClassVar[bool] # default: False
required_db_features: ClassVar[_ListOrTuple[str]]
required_db_vendor: ClassVar[Literal["sqlite", "postgresql", "mysql", "oracle"]]
required_db_vendor: ClassVar[str]
select_on_save: ClassVar[bool] # default: False
indexes: ClassVar[_ListOrTuple[Index]]
unique_together: ClassVar[Sequence[Sequence[str]]]
Expand Down
Loading