Skip to content

Commit 37d8c31

Browse files
committed
ble.lwp3.bytecodes: Fix IODeviceCapabilities enum
Fix failing on newer versions of Python which are more strict about empty enums. Fixes the following error: TypeError: <flag 'IODeviceCapabilities'> has no members; specify `names=()` if you meant to create a new, empty, enum
1 parent f93fba9 commit 37d8c31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pybricksdev/ble/lwp3/bytecodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ class IODeviceCapabilities(IntFlag):
10081008
Sensor capabilities flags. (48-bit)
10091009
"""
10101010

1011-
pass
1011+
names = ()
10121012

10131013

10141014
class DataFormat(IntEnum):

0 commit comments

Comments
 (0)