diff --git a/django_redis/client/default.py b/django_redis/client/default.py index 1c34e5ac..940e1a0e 100644 --- a/django_redis/client/default.py +++ b/django_redis/client/default.py @@ -326,9 +326,7 @@ def expire( key = self.make_key(key, version=version) - # for some strange reason mypy complains, - # saying that timeout type is float | timedelta - return client.expire(key, timeout) # type: ignore + return client.expire(key, timeout) def pexpire( self, @@ -345,11 +343,7 @@ def pexpire( key = self.make_key(key, version=version) - # Temporary casting until https://github.com/redis/redis-py/issues/1664 - # is fixed. - # for some strange reason mypy complains, - # saying that timeout type is float | timedelta - return bool(client.pexpire(key, timeout)) # type: ignore + return bool(client.pexpire(key, timeout)) def pexpire_at( self,