From 9b6fe82dd591a985363d049349cf70f9c27728bb Mon Sep 17 00:00:00 2001 From: Arnold Galovics Date: Fri, 9 Oct 2026 19:35:19 +0200 Subject: [PATCH] fix(keys): suppress reportUnnecessaryIsInstance on the tag filter guard --- litellm/proxy/management_endpoints/key_management_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/management_endpoints/key_management_endpoints.py b/litellm/proxy/management_endpoints/key_management_endpoints.py index fb4d308e10d..78142aeaf4e 100644 --- a/litellm/proxy/management_endpoints/key_management_endpoints.py +++ b/litellm/proxy/management_endpoints/key_management_endpoints.py @@ -7098,7 +7098,7 @@ def _build_key_filter_conditions( *(({"project_id": project_id},) if project_id else ()), *(({"access_group_ids": {"hasSome": [access_group_id]}},) if access_group_id else ()), *(({"agent_id": agent_id},) if agent_id and isinstance(agent_id, str) else ()), - *((_build_key_tag_where(tag),) if tag and isinstance(tag, str) else ()), + *((_build_key_tag_where(tag),) if tag and isinstance(tag, str) else ()), # pyright: ignore[reportUnnecessaryIsInstance] # direct list_keys() callers leave tag as the Query default *( (_build_expires_where_clause(expires_filter, now),) if expires_filter is not None and expires_filter in VALID_EXPIRES_FILTER_VALUES