mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
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.
This commit is contained in:
parent
b4f6e49253
commit
93590434f4
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue