File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -326,9 +326,7 @@ def expire(
326
326
327
327
key = self .make_key (key , version = version )
328
328
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 )
332
330
333
331
def pexpire (
334
332
self ,
@@ -345,11 +343,7 @@ def pexpire(
345
343
346
344
key = self .make_key (key , version = version )
347
345
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 ))
353
347
354
348
def pexpire_at (
355
349
self ,
You can’t perform that action at this time.
0 commit comments