Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
intgr committed May 2, 2024
1 parent 83960c2 commit 41cce4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/django_stubs_ext/aliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
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.
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.
QuerySetAny = QuerySet
ValuesQuerySet = QuerySet
StrOrPromise = typing.Union[str, StrPromise]

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

0 comments on commit 41cce4f

Please sign in to comment.