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:
lostmartian 2026-08-15 00:58:49 +05:30
parent 62eeba6c10
commit 3abab56d35

View file

@ -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