Skip to content

Commit 9a38b1c

Browse files
Saurav SharmaSaurav Sharma
Saurav Sharma
authored and
Saurav Sharma
committed
Fix:mypy errors
1 parent 740520a commit 9a38b1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

django_redis/client/default.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,10 @@ def expire(
303303
# if timeout is DEFAULT_TIMEOUT or None then
304304
# use self._backend.default_timeout(django default cache timeout)
305305

306+
# for some strange reason mypy complains,
307+
# saying that timeout type is float | timedelta
306308
if (timeout is DEFAULT_TIMEOUT) or (timeout is None):
307-
timeout = self._backend.default_timeout
309+
timeout = self._backend.default_timeout # type: ignore
308310

309311
if client is None:
310312
client = self.get_client(write=True)

0 commit comments

Comments
 (0)