mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
user_groups: Change return type "NamedUserGroup" to "UserGroup".
A minor type hint bug: function "get_root_id_annotated_recursive_subgroups_for_groups" returns UserGroup not NamedUserGroup.
This commit is contained in:
@@ -916,7 +916,7 @@ def get_recursive_subgroups_for_groups(
|
||||
|
||||
def get_root_id_annotated_recursive_subgroups_for_groups(
|
||||
user_group_ids: Iterable[int], realm_id: int
|
||||
) -> QuerySet[NamedUserGroup]:
|
||||
) -> QuerySet[UserGroup]:
|
||||
# Same as get_recursive_subgroups_for_groups but keeps track of
|
||||
# each group root_id and annotates it with that group.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user