mirror of https://github.com/zulip/zulip.git
stream_subscription: Remove unused TypedDict `SubInfo`.
This commit is contained in:
parent
86faebc2e5
commit
dcbd3e486f
|
@ -1,5 +1,4 @@
|
||||||
from typing import Any, Dict, List, Tuple
|
from typing import Any, Dict, List, Tuple
|
||||||
from typing_extensions import TypedDict
|
|
||||||
|
|
||||||
from django.db.models.query import QuerySet
|
from django.db.models.query import QuerySet
|
||||||
from zerver.models import (
|
from zerver.models import (
|
||||||
|
@ -39,11 +38,6 @@ def get_stream_subscriptions_for_users(user_profiles: List[UserProfile]) -> Quer
|
||||||
recipient__type=Recipient.STREAM,
|
recipient__type=Recipient.STREAM,
|
||||||
)
|
)
|
||||||
|
|
||||||
SubInfo = TypedDict('SubInfo', {
|
|
||||||
'sub': Subscription,
|
|
||||||
'stream': Stream,
|
|
||||||
})
|
|
||||||
|
|
||||||
def get_bulk_stream_subscriber_info(
|
def get_bulk_stream_subscriber_info(
|
||||||
user_profiles: List[UserProfile],
|
user_profiles: List[UserProfile],
|
||||||
stream_dict: Dict[int, Stream]) -> Dict[int, List[Tuple[Subscription, Stream]]]:
|
stream_dict: Dict[int, Stream]) -> Dict[int, List[Tuple[Subscription, Stream]]]:
|
||||||
|
|
Loading…
Reference in New Issue