fix(mcp): drop the redundant isinstance in the tag header lookup

The helper annotates its parameter as `Mapping[str, str]`, so basedpyright proves the
key is already a `str` and counts the guard under `reportUnnecessaryIsInstance`. That
took the rule to 863 against a budget of 862 and failed the lint gate. The neighbouring
session-id lookup I copied the guard from carries the same diagnostic, but its count is
in the base, so only this one was new
This commit is contained in:
onatozmenn 2026-08-10 15:29:13 +03:00
parent f410580e1b
commit 58582ffe71
No known key found for this signature in database

View file

@ -192,7 +192,7 @@ def _request_tags_header(
if not raw_headers:
return None
for key, value in raw_headers.items():
if isinstance(key, str) and key.lower() == "x-litellm-tags":
if key.lower() == "x-litellm-tags":
return value or None
return None