mirror of https://github.com/zulip/zulip.git
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:
parent
553723e5d4
commit
b28949b9e7
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue