display new firmware format correctly

This commit is contained in:
Laura Klünder 2023-10-06 03:08:25 +02:00
parent ba454ac99b
commit 369b270534
4 changed files with 10 additions and 9 deletions

View file

@ -182,7 +182,8 @@ class StructType:
def __init_subclass__(cls, /, union_type_field=None, existing_c_struct=None, **kwargs):
cls.union_type_field = union_type_field
if cls.existing_c_struct is not None:
raise TypeError('subclassing an external c struct is not possible') # TODO: can we make it possible? does it even make sense?
# TODO: can we make it possible? does it even make sense?
raise TypeError('subclassing an external c struct is not possible')
cls.existing_c_struct = existing_c_struct
if union_type_field:
if union_type_field in cls._union_options: