Skip to content

Commit

Permalink
Fixed types
Browse files Browse the repository at this point in the history
  • Loading branch information
WisdomPill committed Oct 20, 2024
1 parent 17b4a50 commit 673064a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions django_redis/client/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 673064a

Please sign in to comment.