mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-09 08:18:12 +00:00
fix(caching): annotate increment-if-present ttl as float
PYI041: int | float collapses to float since int is a subtype.
This commit is contained in:
parent
62eeba6c10
commit
3abab56d35
1 changed files with 1 additions and 1 deletions
|
|
@ -1038,7 +1038,7 @@ class RedisCache(BaseCache):
|
|||
self,
|
||||
key: str,
|
||||
value: float,
|
||||
ttl: int | float | None = None,
|
||||
ttl: float | None = None,
|
||||
) -> float | None:
|
||||
"""Atomically increment ``key`` by ``value`` only when the key already
|
||||
exists, returning the new value; an absent key is left missing and
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue