refactor: Move SubInfo to stream_subscription.py.

This commit is contained in:
Steve Howell
2020-10-16 12:17:32 +00:00
committed by Tim Abbott
parent 16aa48d9b2
commit 73982f6cc9
2 changed files with 7 additions and 8 deletions

View File

@@ -16,6 +16,12 @@ from zerver.models import (
)
@dataclass
class SubInfo:
user: UserProfile
sub: Subscription
stream: Stream
@dataclass
class SubscriberPeerInfo:
subscribed_ids: Dict[int, Set[int]]