@@ -2593,15 +2593,15 @@ def lpop(self, name: str, count: Optional[int] = None) -> Union[str, List, None]
25932593 else :
25942594 return self .execute_command ("LPOP" , name )
25952595
2596- def lpush (self , name : str , * values : List ) -> Union [Awaitable [int ], int ]:
2596+ def lpush (self , name : str , * values : FieldT ) -> Union [Awaitable [int ], int ]:
25972597 """
25982598 Push ``values`` onto the head of the list ``name``
25992599
26002600 For more information see https://redis.io/commands/lpush
26012601 """
26022602 return self .execute_command ("LPUSH" , name , * values )
26032603
2604- def lpushx (self , name : str , * values : List ) -> Union [Awaitable [int ], int ]:
2604+ def lpushx (self , name : str , * values : FieldT ) -> Union [Awaitable [int ], int ]:
26052605 """
26062606 Push ``value`` onto the head of the list ``name`` if ``name`` exists
26072607
@@ -2679,7 +2679,7 @@ def rpoplpush(self, src: str, dst: str) -> Union[Awaitable[str], str]:
26792679 """
26802680 return self .execute_command ("RPOPLPUSH" , src , dst )
26812681
2682- def rpush (self , name : str , * values : List ) -> Union [Awaitable [int ], int ]:
2682+ def rpush (self , name : str , * values : FieldT ) -> Union [Awaitable [int ], int ]:
26832683 """
26842684 Push ``values`` onto the tail of the list ``name``
26852685
@@ -3169,7 +3169,7 @@ class SetCommands(CommandsProtocol):
31693169 see: https://redis.io/topics/data-types#sets
31703170 """
31713171
3172- def sadd (self , name : str , * values : List ) -> Union [Awaitable [int ], int ]:
3172+ def sadd (self , name : str , * values : FieldT ) -> Union [Awaitable [int ], int ]:
31733173 """
31743174 Add ``value(s)`` to set ``name``
31753175
@@ -3307,7 +3307,7 @@ def srandmember(
33073307 args = (number is not None ) and [number ] or []
33083308 return self .execute_command ("SRANDMEMBER" , name , * args )
33093309
3310- def srem (self , name : str , * values : List ) -> Union [Awaitable [int ], int ]:
3310+ def srem (self , name : str , * values : FieldT ) -> Union [Awaitable [int ], int ]:
33113311 """
33123312 Remove ``values`` from set ``name``
33133313
@@ -4586,7 +4586,7 @@ def zrank(self, name: KeyT, value: EncodableT) -> ResponseT:
45864586 """
45874587 return self .execute_command ("ZRANK" , name , value )
45884588
4589- def zrem (self , name : KeyT , * values : EncodableT ) -> ResponseT :
4589+ def zrem (self , name : KeyT , * values : FieldT ) -> ResponseT :
45904590 """
45914591 Remove member ``values`` from sorted set ``name``
45924592
@@ -4735,7 +4735,7 @@ class HyperlogCommands(CommandsProtocol):
47354735 see: https://redis.io/topics/data-types-intro#hyperloglogs
47364736 """
47374737
4738- def pfadd (self , name : KeyT , * values : EncodableT ) -> ResponseT :
4738+ def pfadd (self , name : KeyT , * values : FieldT ) -> ResponseT :
47394739 """
47404740 Adds the specified elements to the specified HyperLogLog.
47414741
0 commit comments