Skip to content

Commit adc44ee

Browse files
committed
switch to List
1 parent 74886a2 commit adc44ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

redis/commands/core.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import hashlib
33
import time
44
import warnings
5-
from typing import Optional
5+
from typing import List, Optional
66

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

@@ -3677,7 +3677,7 @@ class HashCommands:
36773677
see: https://redis.io/topics/data-types-intro#redis-hashes
36783678
"""
36793679

3680-
def hdel(self, name: str, *keys: list) -> int:
3680+
def hdel(self, name: str, *keys: List) -> int:
36813681
"""
36823682
Delete ``keys`` from hash ``name``
36833683
@@ -3725,7 +3725,7 @@ def hincrbyfloat(self, name: str, key: str, amount: float = 1.0) -> float:
37253725
"""
37263726
return self.execute_command("HINCRBYFLOAT", name, key, amount)
37273727

3728-
def hkeys(self, name: str) -> list:
3728+
def hkeys(self, name: str) -> List:
37293729
"""
37303730
Return the list of keys within hash ``name``
37313731
@@ -3796,7 +3796,7 @@ def hmset(self, name: str, mapping: dict) -> str:
37963796
items.extend(pair)
37973797
return self.execute_command("HMSET", name, *items)
37983798

3799-
def hmget(self, name: str, keys: list, *args: list) -> list:
3799+
def hmget(self, name: str, keys: List, *args: List) -> List:
38003800
"""
38013801
Returns a list of values ordered identically to ``keys``
38023802
@@ -3805,7 +3805,7 @@ def hmget(self, name: str, keys: list, *args: list) -> list:
38053805
args = list_or_args(keys, args)
38063806
return self.execute_command("HMGET", name, *args)
38073807

3808-
def hvals(self, name: str) -> list:
3808+
def hvals(self, name: str) -> List:
38093809
"""
38103810
Return the list of values within hash ``name``
38113811

0 commit comments

Comments
 (0)