Skip to content

Commit

Permalink
Corrected leap second subclass default value.
Browse files Browse the repository at this point in the history
The previous syntax is not supported. See
python/typing#427.
  • Loading branch information
adamshapiro0 committed Mar 22, 2023
1 parent 6f39bf2 commit a85d71b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/fusion_engine_client/messages/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,8 @@ class LeapSecondConfig(_conf_gen.IntegerVal):
decoded from available signals. Set to -1 to disable leap second override and re-enable internal leap second
handling.
"""
value: int = -1
def __new__(cls, value: int = -1):
return super().__new__(cls, value)


@_conf_gen.create_config_class(ConfigType.UART1_BAUD, _conf_gen.UInt32Construct)
Expand Down

0 comments on commit a85d71b

Please sign in to comment.