Skip to content

Commit

Permalink
update typing for move
Browse files Browse the repository at this point in the history
Signed-off-by: root <[email protected]>
  • Loading branch information
spyinx committed Dec 5, 2024
1 parent 75917a6 commit 2536ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion valkey/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2032,7 +2032,7 @@ def msetnx(self, mapping: Mapping[AnyKeyT, EncodableT]) -> ResponseT:
items.extend(pair)
return self.execute_command("MSETNX", *items)

def move(self, name: KeyT, db: int) -> ResponseT:
def move(self, name: KeyT, db: Union[str, int]) -> ResponseT:
"""
Moves the key ``name`` to a different Valkey database ``db``
Expand Down

0 comments on commit 2536ba0

Please sign in to comment.