Skip to content

Commit 673064a

Browse files
committed
Fixed types
1 parent 17b4a50 commit 673064a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

django_redis/client/default.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,7 @@ def expire(
326326

327327
key = self.make_key(key, version=version)
328328

329-
# for some strange reason mypy complains,
330-
# saying that timeout type is float | timedelta
331-
return client.expire(key, timeout) # type: ignore
329+
return client.expire(key, timeout)
332330

333331
def pexpire(
334332
self,
@@ -345,11 +343,7 @@ def pexpire(
345343

346344
key = self.make_key(key, version=version)
347345

348-
# Temporary casting until https://github.com/redis/redis-py/issues/1664
349-
# is fixed.
350-
# for some strange reason mypy complains,
351-
# saying that timeout type is float | timedelta
352-
return bool(client.pexpire(key, timeout)) # type: ignore
346+
return bool(client.pexpire(key, timeout))
353347

354348
def pexpire_at(
355349
self,

0 commit comments

Comments
 (0)