abcminiuser / python-elgato-streamdeck

Python library to control the Elgato Stream Deck.
Other
919 stars 137 forks source link

DeviceManager.enumerate lacks type hint #146

Open DocterDum opened 4 months ago

DocterDum commented 4 months ago

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]: