From 93590434f4305d28cca45196a8204c37d4b91a88 Mon Sep 17 00:00:00 2001 From: Deepanshu Date: Mon, 17 Aug 2026 13:15:40 -0400 Subject: [PATCH] fix(rate-limiting): remove an unnecessary forward-reference quote (ruff UP037) self.keys: T = value annotations inside a method body are never evaluated at runtime, so the "_PartitionKey" forward-reference quoting was unneeded despite _PartitionKey being defined later in the file. --- litellm/proxy/hooks/tag_rate_limiter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/hooks/tag_rate_limiter.py b/litellm/proxy/hooks/tag_rate_limiter.py index ab810ae836a..01876511b03 100644 --- a/litellm/proxy/hooks/tag_rate_limiter.py +++ b/litellm/proxy/hooks/tag_rate_limiter.py @@ -473,7 +473,7 @@ class _PendingConcurrencyKeys: __slots__ = ("keys",) def __init__(self) -> None: - self.keys: list[tuple[str, "_PartitionKey"]] = [] # mutable-ok: shared across forks by design; see docstring + self.keys: list[tuple[str, _PartitionKey]] = [] # mutable-ok: shared across forks by design; see docstring _pending_concurrency_keys: Final[contextvars.ContextVar[_PendingConcurrencyKeys | None]] = contextvars.ContextVar(