Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanteber committed Mar 8, 2022
1 parent e2ed5fe commit fcdde6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion redis/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,8 @@ def expire(self, name: KeyT, time: ExpiryT) -> ResponseT:
time = int(time.total_seconds())
return self.execute_command("EXPIRE", name, time)

def expireat(self,
def expireat(
self,
name: KeyT,
when: AbsExpiryT,
option: Union[
Expand Down
3 changes: 2 additions & 1 deletion tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1075,11 +1075,12 @@ def test_expireat_unixtime(self, r):
assert r.expireat("a", expire_at_seconds) is True
assert 0 < r.ttl("a") <= 61

@skip_if_server_version_lt("7.0.0")
def test_expiretime(self, r):
r.set("a", "foo")
r.expireat("a", 33177117420)
assert r.expiretime("a") == 33177117420

@skip_if_server_version_lt("7.0.0")
def test_expireat_option_nx(self, r):
assert r.set("key", "val") is True
Expand Down

0 comments on commit fcdde6e

Please sign in to comment.