Skip to content

Commit 19f1c01

Browse files
committed
ble.lwp3.bytecodes: Replace workaround with proper fix
The recommended way to handle this is to have an empty names attribute rather than having a fake member.
1 parent 37d8c31 commit 19f1c01

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pybricksdev/ble/lwp3/bytecodes.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,7 @@ class PortID(IntEnum):
574574
All enum members are dynamic. (0 to 49 are external and 50 - 100 are internal)
575575
"""
576576

577-
# not used - Python requires at least one member
578-
_PLACEHOLDER = -1
577+
names = ()
579578

580579
@property
581580
def internal(self) -> bool:
@@ -914,8 +913,7 @@ class HwNetExtFamily(IntEnum):
914913
a single byte.
915914
"""
916915

917-
# not used - Python requires at least one member
918-
_PLACEHOLDER = -1
916+
names = ()
919917

920918
@property
921919
def family(self) -> HwNetFamily:

0 commit comments

Comments
 (0)