We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 740520a commit 9a38b1cCopy full SHA for 9a38b1c
django_redis/client/default.py
@@ -303,8 +303,10 @@ def expire(
303
# if timeout is DEFAULT_TIMEOUT or None then
304
# use self._backend.default_timeout(django default cache timeout)
305
306
+ # for some strange reason mypy complains,
307
+ # saying that timeout type is float | timedelta
308
if (timeout is DEFAULT_TIMEOUT) or (timeout is None):
- timeout = self._backend.default_timeout
309
+ timeout = self._backend.default_timeout # type: ignore
310
311
if client is None:
312
client = self.get_client(write=True)
0 commit comments