Describe the bug
The type anotation for set_key_callback_async
|
def set_key_callback_async(self, async_callback: KeyCallback, loop=None): |
says async_callback: KeyCallback, but that's the type of a synchronous callback, not an async callback. I think this applies to other async callbacks as well.
To Reproduce
Write a trivial program to use set_key_async_callback and run mypy.
StreamDeck Information
(Applies to any model StreamDeck)
System Information
Applies to any OS and hardware. This is true as of library version 0.9.8, and in the current tip of github.
Describe the bug
The type anotation for
set_key_callback_asyncpython-elgato-streamdeck/src/StreamDeck/Devices/StreamDeck.py
Line 456 in 47c97ad
says
async_callback: KeyCallback, but that's the type of a synchronous callback, not an async callback. I think this applies to other async callbacks as well.To Reproduce
Write a trivial program to use
set_key_async_callbackand runmypy.StreamDeck Information
(Applies to any model StreamDeck)
System Information
Applies to any OS and hardware. This is true as of library version 0.9.8, and in the current tip of github.