typing: Use django-stubs' type annotations for QuerySet.

We no longer need to annotate the type of objects returned
from queries since django-stubs plugin infers that already.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li 2022-06-14 23:21:08 -04:00 committed by Tim Abbott
parent 553723e5d4
commit b28949b9e7
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ def gather_subscriptions_helper(
include_subscribers: bool = True,
) -> SubscriptionInfo:
realm = user_profile.realm
all_streams: QuerySet[RawStreamDict] = get_active_streams(realm).values(
all_streams = get_active_streams(realm).values(
*Stream.API_FIELDS,
# The realm_id and recipient_id are generally not needed in the API.
"realm_id",