Skip to content

Commit 41cce4f

Browse files
committed
Add comments
1 parent 83960c2 commit 41cce4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/django_stubs_ext/aliases.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
from django.utils.functional import _StrOrPromise as StrOrPromise
66
from django.utils.functional import _StrPromise as StrPromise
77

8+
# Obsolete type aliases. Use the QuerySet class directly instead.
89
QuerySetAny = _QuerySetAny
910
ValuesQuerySet = _QuerySet[_T, _Row]
1011
else:
1112
from django.db.models.query import QuerySet
1213
from django.utils.functional import Promise as StrPromise
1314

15+
StrOrPromise = typing.Union[str, StrPromise]
16+
# Obsolete type aliases. Use the QuerySet class directly instead.
1417
QuerySetAny = QuerySet
1518
ValuesQuerySet = QuerySet
16-
StrOrPromise = typing.Union[str, StrPromise]
1719

1820
__all__ = ["StrOrPromise", "StrPromise", "QuerySetAny", "ValuesQuerySet"]

0 commit comments

Comments
 (0)