Closed
Description
when i read code in copy() method, i found destination_db can be int type and works well, but the type constraint hints it can only be str or None:
>>> from valkey import Valkey
>>> r = Valkey(host="127.0.0.1", port=6888, password='xxxxx')
>>> r.copy("hello", "abc", 1, True)
True
>>> r.copy("hello", "abc", "1", True)
True
valkey-py/valkey/commands/core.py
Lines 1661 to 1667 in c490780
so, i think this can be changed like this:
destination_db: Optional[Union[int, str]] = None,
or
destination_db: Union[int, str, None] = None,