python-elgato-streamdeck icon indicating copy to clipboard operation
python-elgato-streamdeck copied to clipboard

DeviceManager.enumerate lacks type hint

Open DocterDum opened this issue 1 year ago • 0 comments

Describe the bug DeviceManager.enumerate doesn't have a type hint, this being the first step in using this library then means it entirely lacks type hints when.

To Reproduce Use any modern IDE: from StreamDeck.DeviceManager import DeviceManager streamdecks = DeviceManager().enumerate()

streamdecks has no type hint, and methods on it and its children cannot be autocompleted

Suggested Fix Update DeviceManager.py: Add: from typing import List from .Devices.StreamDeck import StreamDeck Update: def enumerate(self): def enumerate(self) -> List[StreamDeck]:

DocterDum avatar Jul 09 '24 11:07 DocterDum