mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-17 09:34:48 +00:00
fix(router): suppress TID251 for typing.Any/cast imports in strict ruff gate
The strict ruff gate (TID251) bans typing.Any and typing.cast imports. Add a noqa suppression with reason per the config's documented escape hatch; the Any annotations keep the basedpyright delta at zero. No behavior change. Signed-off-by: Kylinny <64238008+Kylinny@users.noreply.github.com>
This commit is contained in:
parent
56e74cd4d9
commit
8b8c9e0f47
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ import hashlib
|
|||
import json
|
||||
from collections.abc import Mapping, Sequence
|
||||
from types import MappingProxyType
|
||||
from typing import TYPE_CHECKING, Any, Final, TypeVar, cast
|
||||
from typing import TYPE_CHECKING, Any, Final, TypeVar, cast # noqa: TID251 # Any for basedpyright; cast is validated
|
||||
|
||||
from pydantic import TypeAdapter
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue