mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-15 04:19:08 +00:00
fix(keys): suppress reportUnnecessaryIsInstance on the tag filter guard
This commit is contained in:
parent
3127d491a0
commit
9b6fe82dd5
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue