@@ -830,7 +830,7 @@ def command_list(
830
830
831
831
return self .execute_command ("COMMAND LIST" , * pieces )
832
832
833
- def command_getkeysandflags (self , * args : List [ str ] ) -> List [Union [str , List [str ]]]:
833
+ def command_getkeysandflags (self , * args : str ) -> List [Union [str , List [str ]]]:
834
834
"""
835
835
Returns array of keys from a full Redis command and their usage flags.
836
836
@@ -848,7 +848,7 @@ def command_docs(self, *args):
848
848
)
849
849
850
850
def config_get (
851
- self , pattern : PatternT = "*" , * args : List [ PatternT ] , ** kwargs
851
+ self , pattern : PatternT = "*" , * args : PatternT , ** kwargs
852
852
) -> ResponseT :
853
853
"""
854
854
Return a dictionary of configuration based on the ``pattern``
@@ -861,7 +861,7 @@ def config_set(
861
861
self ,
862
862
name : KeyT ,
863
863
value : EncodableT ,
864
- * args : List [ Union [KeyT , EncodableT ] ],
864
+ * args : Union [KeyT , EncodableT ],
865
865
** kwargs ,
866
866
) -> ResponseT :
867
867
"""Set config item ``name`` with ``value``
@@ -987,9 +987,7 @@ def select(self, index: int, **kwargs) -> ResponseT:
987
987
"""
988
988
return self .execute_command ("SELECT" , index , ** kwargs )
989
989
990
- def info (
991
- self , section : Optional [str ] = None , * args : List [str ], ** kwargs
992
- ) -> ResponseT :
990
+ def info (self , section : Optional [str ] = None , * args : str , ** kwargs ) -> ResponseT :
993
991
"""
994
992
Returns a dictionary containing information about the Redis server
995
993
@@ -2606,7 +2604,7 @@ def blmpop(
2606
2604
self ,
2607
2605
timeout : float ,
2608
2606
numkeys : int ,
2609
- * args : List [ str ] ,
2607
+ * args : str ,
2610
2608
direction : str ,
2611
2609
count : Optional [int ] = 1 ,
2612
2610
) -> Optional [list ]:
@@ -2619,14 +2617,14 @@ def blmpop(
2619
2617
2620
2618
For more information, see https://redis.io/commands/blmpop
2621
2619
"""
2622
- args = [timeout , numkeys , * args , direction , "COUNT" , count ]
2620
+ cmd_args = [timeout , numkeys , * args , direction , "COUNT" , count ]
2623
2621
2624
- return self .execute_command ("BLMPOP" , * args )
2622
+ return self .execute_command ("BLMPOP" , * cmd_args )
2625
2623
2626
2624
def lmpop (
2627
2625
self ,
2628
2626
num_keys : int ,
2629
- * args : List [ str ] ,
2627
+ * args : str ,
2630
2628
direction : str ,
2631
2629
count : Optional [int ] = 1 ,
2632
2630
) -> Union [Awaitable [list ], list ]:
@@ -2636,11 +2634,11 @@ def lmpop(
2636
2634
2637
2635
For more information, see https://redis.io/commands/lmpop
2638
2636
"""
2639
- args = [num_keys ] + list (args ) + [direction ]
2637
+ cmd_args = [num_keys ] + list (args ) + [direction ]
2640
2638
if count != 1 :
2641
- args .extend (["COUNT" , count ])
2639
+ cmd_args .extend (["COUNT" , count ])
2642
2640
2643
- return self .execute_command ("LMPOP" , * args )
2641
+ return self .execute_command ("LMPOP" , * cmd_args )
2644
2642
2645
2643
def lindex (
2646
2644
self , name : str , index : int
0 commit comments