mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 20:41:46 +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(
|
def get_root_id_annotated_recursive_subgroups_for_groups(
|
||||||
user_group_ids: Iterable[int], realm_id: int
|
user_group_ids: Iterable[int], realm_id: int
|
||||||
) -> QuerySet[NamedUserGroup]:
|
) -> QuerySet[UserGroup]:
|
||||||
# Same as get_recursive_subgroups_for_groups but keeps track of
|
# Same as get_recursive_subgroups_for_groups but keeps track of
|
||||||
# each group root_id and annotates it with that group.
|
# each group root_id and annotates it with that group.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user