On Python < 3.11, IntFlag.name returns None for composite flags (e.g. NotificationFlag(0x000900) = SOFTWARE_PRESENT|WIRELESS). The previous fix (#3184) returns an empty list in this case, losing the flag names. This commit decomposes composite flags manually by iterating over enum members, producing correct results on all supported Python versions (>= 3.8 as declared in setup.py). Add regression tests covering composite flags and None input. Tested on: - Python 3.9.2 (Debian 11): 56/56 passed - Python 3.11.15 (pyenv): 56/56 passed Refs #3184 |
||
|---|---|---|
| .. | ||
| hid_parser | ||
| hidapi | ||
| keysyms | ||
| logitech_receiver | ||
| solaar | ||