This brings the dummy backend in line with the real backends in terms of the values on the Key enum being KeyCode instances.
This would also warrant an update in typeshed (https://github.com/python/typeshed/blob/main/stubs/pynput/pynput/keyboard/_base.pyi) which would fix the incorrect types, as currently mypy says that Key.value is an int, which is not true for the real backends.
This brings the dummy backend in line with the real backends in terms of the values on the
Key
enum beingKeyCode
instances. This would also warrant an update in typeshed (https://github.com/python/typeshed/blob/main/stubs/pynput/pynput/keyboard/_base.pyi) which would fix the incorrect types, as currently mypy says thatKey.value
is an int, which is not true for the real backends.