Skip to content

Commit

Permalink
removed ModelWithMeta
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham committed Mar 12, 2024
1 parent b32e9ba commit 68cd002
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions ext/django_stubs_ext/db/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import TYPE_CHECKING, Any, ClassVar, Literal, Protocol, Sequence, Tuple, Type, TypeVar, Union
from typing import TYPE_CHECKING, ClassVar, Literal, Protocol, Sequence, Tuple, Union

from django.db.models import BaseConstraint, Index, OrderBy
from typing_extensions import TypeAlias
Expand Down Expand Up @@ -168,13 +168,3 @@ class _MetaVerboseNamePlural(Protocol):
_MetaVerboseName,
_MetaVerboseNamePlural,
]


_Meta = TypeVar("_Meta", bound=ModelMeta)


class _ModelWithMeta(Protocol[_Meta]):
Meta: Type[_Meta]


ModelWithMeta: TypeAlias = _ModelWithMeta[Any]

0 comments on commit 68cd002

Please sign in to comment.