Skip to content

Commit

Permalink
Update comments (Obsolete -> deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
intgr committed May 3, 2024
1 parent 41cce4f commit 609059a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion django-stubs/db/models/query.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class RawQuerySet(Iterable[_Model], Sized):
def resolve_model_init_order(self) -> tuple[list[str], list[int], list[tuple[str, int]]]: ...
def using(self, alias: str | None) -> RawQuerySet[_Model]: ...

# Obsolete aliases of QuerySet, for compatibility only.
# Deprecated aliases of QuerySet, for compatibility only.
_QuerySet: TypeAlias = QuerySet[_T, _Row]
_QuerySetAny: TypeAlias = QuerySet # noqa: PYI047

Expand Down
4 changes: 2 additions & 2 deletions ext/django_stubs_ext/aliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
from django.utils.functional import _StrOrPromise as StrOrPromise
from django.utils.functional import _StrPromise as StrPromise

# Obsolete type aliases. Use the QuerySet class directly instead.
# Depecated type aliases. Use the QuerySet class directly instead.
QuerySetAny = _QuerySetAny
ValuesQuerySet = _QuerySet[_T, _Row]
else:
from django.db.models.query import QuerySet
from django.utils.functional import Promise as StrPromise

StrOrPromise = typing.Union[str, StrPromise]
# Obsolete type aliases. Use the QuerySet class directly instead.
# Deprecated type aliases. Use the QuerySet class directly instead.
QuerySetAny = QuerySet
ValuesQuerySet = QuerySet

Expand Down

0 comments on commit 609059a

Please sign in to comment.