mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
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:
parent
f410580e1b
commit
58582ffe71
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue