Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Zixuan James Lib28949b9e74a
diff --git a/zerver/lib/subscription_info.py b/zerver/lib/subscription_info.py
index 09bfd0e4f12..e3217483bce 100644
--- a/zerver/lib/subscription_info.py
+++ b/zerver/lib/subscription_info.py
@@ -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",