From 609059a1b8940dd607315e43a0e7e6c5427ba745 Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Fri, 3 May 2024 15:45:41 +0300 Subject: [PATCH] Update comments (Obsolete -> deprecated) --- django-stubs/db/models/query.pyi | 2 +- ext/django_stubs_ext/aliases.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/django-stubs/db/models/query.pyi b/django-stubs/db/models/query.pyi index db13ad188..fe57552b7 100644 --- a/django-stubs/db/models/query.pyi +++ b/django-stubs/db/models/query.pyi @@ -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 diff --git a/ext/django_stubs_ext/aliases.py b/ext/django_stubs_ext/aliases.py index e3a0a5998..33879f96a 100644 --- a/ext/django_stubs_ext/aliases.py +++ b/ext/django_stubs_ext/aliases.py @@ -5,7 +5,7 @@ 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: @@ -13,7 +13,7 @@ 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