- 
        Couldn't load subscription status. 
- Fork 27
Closed
Labels
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)
Truevalkey-py/valkey/commands/core.py
Lines 1661 to 1667 in c490780
| def copy( | |
| self, | |
| source: str, | |
| destination: str, | |
| destination_db: Union[str, None] = None, | |
| replace: bool = False, | |
| ) -> ResponseT: | 
so, i think this can be changed like this:
destination_db: Optional[Union[int, str]] = None,
or 
destination_db: Union[int, str, None] = None,