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:
Kylinny 2026-10-14 13:42:20 +00:00 • committed by Kylinny
parent 56e74cd4d9
commit 8b8c9e0f47

View file

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