From 4383a348e1af2eef12e39e0b445c9d887498b90b Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Thu, 2 May 2024 16:03:45 -0400 Subject: [PATCH] Fix another type hint issue --- ansible_base/rbac/api/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible_base/rbac/api/views.py b/ansible_base/rbac/api/views.py index 6cfe725a7..be79a28ae 100644 --- a/ansible_base/rbac/api/views.py +++ b/ansible_base/rbac/api/views.py @@ -1,4 +1,5 @@ from collections import OrderedDict +from typing import Type from django.db import transaction from django.db.models import Model @@ -23,7 +24,7 @@ from ansible_base.rbac.validators import permissions_allowed_for_role, system_roles_enabled -def list_combine_values(data: dict[Model, list[str]]) -> list[str]: +def list_combine_values(data: dict[Type[Model], list[str]]) -> list[str]: "Utility method to merge everything in .values() into a single list" ret = [] for this_list in data.values():