mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 21:48:30 +00:00
typing: Apply trivial none-checks with assertions as necessary.
Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
committed by
Tim Abbott
parent
58e95cbfae
commit
fd9a0f4274
@@ -93,6 +93,7 @@ def get_used_colors_for_user_ids(user_ids: List[int]) -> Dict[int, Set[str]]:
|
||||
result: Dict[int, Set[str]] = defaultdict(set)
|
||||
|
||||
for row in list(query):
|
||||
assert row["color"] is not None
|
||||
result[row["user_profile_id"]].add(row["color"])
|
||||
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user