Skip to content

Commit 16ac94e

Browse files
committed
fix linters
1 parent 7370262 commit 16ac94e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

redis/commands/core.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import datetime
22
import hashlib
33
import time
4-
from typing import List, Optional
54
import warnings
5+
from typing import List, Optional
66

77
from redis.exceptions import ConnectionError, DataError, NoScriptError, RedisError
88

@@ -1931,9 +1931,9 @@ def lmpop(
19311931
self,
19321932
num_keys: int,
19331933
*args: List[str],
1934-
direction: str=None,
1935-
count: Optional[int]=1
1936-
) -> List:
1934+
direction: str = None,
1935+
count: Optional[int] = 1,
1936+
) -> List:
19371937
"""
19381938
Pop ``count`` values (default 1) first non-empty list key from the list
19391939
of args provided key names.

tests/test_commands.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1482,7 +1482,7 @@ def test_lmpop(self, unstable_r):
14821482
with pytest.raises(redis.ResponseError):
14831483
unstable_r.lmpop("2", "bar", "foo", direction="up", count=2)
14841484
unstable_r.rpush("bar", "a", "b", "c", "d")
1485-
assert unstable_r.lmpop("2", "bar", "foo", direction="RIGHT") == [b"bar", [b"d"]]
1485+
assert unstable_r.lmpop("2", "bar", "foo", direction="LEFT") == [b"bar", [b"a"]]
14861486

14871487
def test_lindex(self, r):
14881488
r.rpush("a", "1", "2", "3")

0 commit comments

Comments
 (0)