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:
bedo
2025-07-25 01:51:03 +03:00
committed by Tim Abbott
parent 0ac24bd437
commit 121265b188

View File

@@ -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.