Skip to content

Commit a85d71b

Browse files
committed
Corrected leap second subclass default value.
The previous syntax is not supported. See python/typing#427.
1 parent 6f39bf2 commit a85d71b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/fusion_engine_client/messages/configuration.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,8 @@ class LeapSecondConfig(_conf_gen.IntegerVal):
581581
decoded from available signals. Set to -1 to disable leap second override and re-enable internal leap second
582582
handling.
583583
"""
584-
value: int = -1
584+
def __new__(cls, value: int = -1):
585+
return super().__new__(cls, value)
585586

586587

587588
@_conf_gen.create_config_class(ConfigType.UART1_BAUD, _conf_gen.UInt32Construct)

0 commit comments

Comments
 (0)