From df96c154d012446a423ed5920c1d10f1eb33a2b5 Mon Sep 17 00:00:00 2001 From: Andrew Schweitzer Date: Sun, 5 May 2024 16:37:50 -0400 Subject: [PATCH] Remove 'shadowing' warnings by renanming 'tuple' function parameters to 'tpl' --- src/gwproto/gs/gs_dispatch_maker.py | 18 +++++++++--------- src/gwproto/gs/gs_pwr_maker.py | 18 +++++++++--------- src/gwproto/types/data_channel.py | 6 +++--- src/gwproto/types/egauge_io.py | 4 ++-- src/gwproto/types/egauge_register_config.py | 6 +++--- src/gwproto/types/electric_meter_cac_gt.py | 4 ++-- .../types/electric_meter_component_gt.py | 4 ++-- src/gwproto/types/gt_dispatch_boolean.py | 4 ++-- src/gwproto/types/gt_dispatch_boolean_local.py | 4 ++-- .../types/gt_driver_booleanactuator_cmd.py | 4 ++-- .../types/gt_sh_booleanactuator_cmd_status.py | 4 ++-- src/gwproto/types/gt_sh_cli_atn_cmd.py | 4 ++-- .../gt_sh_multipurpose_telemetry_status.py | 4 ++-- .../types/gt_sh_simple_telemetry_status.py | 4 ++-- src/gwproto/types/gt_sh_status.py | 4 ++-- ...gt_sh_telemetry_from_multipurpose_sensor.py | 4 ++-- src/gwproto/types/gt_telemetry.py | 4 ++-- src/gwproto/types/heartbeat_b.py | 4 ++-- .../types/multipurpose_sensor_cac_gt.py | 4 ++-- .../types/multipurpose_sensor_component_gt.py | 4 ++-- src/gwproto/types/pipe_flow_sensor_cac_gt.py | 4 ++-- .../types/pipe_flow_sensor_component_gt.py | 4 ++-- src/gwproto/types/power_watts.py | 4 ++-- src/gwproto/types/relay_cac_gt.py | 4 ++-- src/gwproto/types/relay_component_gt.py | 4 ++-- src/gwproto/types/resistive_heater_cac_gt.py | 4 ++-- .../types/resistive_heater_component_gt.py | 4 ++-- src/gwproto/types/simple_temp_sensor_cac_gt.py | 4 ++-- .../types/simple_temp_sensor_component_gt.py | 4 ++-- src/gwproto/types/snapshot_spaceheat.py | 4 ++-- src/gwproto/types/spaceheat_node_gt.py | 4 ++-- src/gwproto/types/ta_data_channels.py | 4 ++-- .../types/telemetry_reporting_config.py | 4 ++-- .../types/telemetry_snapshot_spaceheat.py | 4 ++-- 34 files changed, 84 insertions(+), 84 deletions(-) diff --git a/src/gwproto/gs/gs_dispatch_maker.py b/src/gwproto/gs/gs_dispatch_maker.py index d9ad41fb..f8836ee8 100644 --- a/src/gwproto/gs/gs_dispatch_maker.py +++ b/src/gwproto/gs/gs_dispatch_maker.py @@ -8,18 +8,18 @@ class GsDispatch_Maker: type_name = "d" def __init__(self, relay_state): - tuple = GsDispatch(RelayState=relay_state) - tuple.check_for_errors() - self.tuple = tuple + tpl = GsDispatch(RelayState=relay_state) + tpl.check_for_errors() + self.tuple = tpl @classmethod - def tuple_to_type(cls, tuple: GsDispatch) -> bytes: - tuple.check_for_errors() - return tuple.as_type() + def tuple_to_type(cls, tpl: GsDispatch) -> bytes: + tpl.check_for_errors() + return tpl.as_type() @classmethod def type_to_tuple(cls, b: bytes) -> GsDispatch: (relay_state,) = struct.unpack(" bytes: - tuple.check_for_errors() - return tuple.as_type() + def tuple_to_type(cls, tpl: GsPwr) -> bytes: + tpl.check_for_errors() + return tpl.as_type() @classmethod def type_to_tuple(cls, b: bytes) -> GsPwr: (power,) = struct.unpack(" bytes: + def tuple_to_type(cls, tpl: DataChannel) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> DataChannel: @@ -223,7 +223,7 @@ def check_is_spaceheat_name(v: str) -> None: or a hyphen, and the first word starts with an alphabet character. Args: - candidate (str): The string to be validated. + v (str): The string to be validated. Raises: ValueError: If the provided string is not in SpaceheatName format. diff --git a/src/gwproto/types/egauge_io.py b/src/gwproto/types/egauge_io.py index abe931bf..348f05df 100644 --- a/src/gwproto/types/egauge_io.py +++ b/src/gwproto/types/egauge_io.py @@ -122,11 +122,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: EgaugeIo) -> bytes: + def tuple_to_type(cls, tpl: EgaugeIo) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> EgaugeIo: diff --git a/src/gwproto/types/egauge_register_config.py b/src/gwproto/types/egauge_register_config.py index 1a4ccc50..4f16d50a 100644 --- a/src/gwproto/types/egauge_register_config.py +++ b/src/gwproto/types/egauge_register_config.py @@ -131,7 +131,7 @@ def __init__( address: int, name: str, description: str, - type: str, + type: str, # noqa denominator: int, unit: str, ): @@ -145,11 +145,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: EgaugeRegisterConfig) -> bytes: + def tuple_to_type(cls, tpl: EgaugeRegisterConfig) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> EgaugeRegisterConfig: diff --git a/src/gwproto/types/electric_meter_cac_gt.py b/src/gwproto/types/electric_meter_cac_gt.py index 5caff71c..e214fe22 100644 --- a/src/gwproto/types/electric_meter_cac_gt.py +++ b/src/gwproto/types/electric_meter_cac_gt.py @@ -174,11 +174,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: ElectricMeterCacGt) -> bytes: + def tuple_to_type(cls, tpl: ElectricMeterCacGt) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> ElectricMeterCacGt: diff --git a/src/gwproto/types/electric_meter_component_gt.py b/src/gwproto/types/electric_meter_component_gt.py index a093c94b..b147ba3a 100644 --- a/src/gwproto/types/electric_meter_component_gt.py +++ b/src/gwproto/types/electric_meter_component_gt.py @@ -263,11 +263,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: ElectricMeterComponentGt) -> bytes: + def tuple_to_type(cls, tpl: ElectricMeterComponentGt) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> ElectricMeterComponentGt: diff --git a/src/gwproto/types/gt_dispatch_boolean.py b/src/gwproto/types/gt_dispatch_boolean.py index bd7b8ff8..9451493a 100644 --- a/src/gwproto/types/gt_dispatch_boolean.py +++ b/src/gwproto/types/gt_dispatch_boolean.py @@ -189,11 +189,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: GtDispatchBoolean) -> bytes: + def tuple_to_type(cls, tpl: GtDispatchBoolean) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> GtDispatchBoolean: diff --git a/src/gwproto/types/gt_dispatch_boolean_local.py b/src/gwproto/types/gt_dispatch_boolean_local.py index fcc97f1b..94d808ac 100644 --- a/src/gwproto/types/gt_dispatch_boolean_local.py +++ b/src/gwproto/types/gt_dispatch_boolean_local.py @@ -160,11 +160,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: GtDispatchBooleanLocal) -> bytes: + def tuple_to_type(cls, tpl: GtDispatchBooleanLocal) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> GtDispatchBooleanLocal: diff --git a/src/gwproto/types/gt_driver_booleanactuator_cmd.py b/src/gwproto/types/gt_driver_booleanactuator_cmd.py index a8bd7167..71bc7333 100644 --- a/src/gwproto/types/gt_driver_booleanactuator_cmd.py +++ b/src/gwproto/types/gt_driver_booleanactuator_cmd.py @@ -138,11 +138,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: GtDriverBooleanactuatorCmd) -> bytes: + def tuple_to_type(cls, tpl: GtDriverBooleanactuatorCmd) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> GtDriverBooleanactuatorCmd: diff --git a/src/gwproto/types/gt_sh_booleanactuator_cmd_status.py b/src/gwproto/types/gt_sh_booleanactuator_cmd_status.py index 6b98b58e..674ff033 100644 --- a/src/gwproto/types/gt_sh_booleanactuator_cmd_status.py +++ b/src/gwproto/types/gt_sh_booleanactuator_cmd_status.py @@ -140,11 +140,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: GtShBooleanactuatorCmdStatus) -> bytes: + def tuple_to_type(cls, tpl: GtShBooleanactuatorCmdStatus) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> GtShBooleanactuatorCmdStatus: diff --git a/src/gwproto/types/gt_sh_cli_atn_cmd.py b/src/gwproto/types/gt_sh_cli_atn_cmd.py index a4663345..df34b88a 100644 --- a/src/gwproto/types/gt_sh_cli_atn_cmd.py +++ b/src/gwproto/types/gt_sh_cli_atn_cmd.py @@ -136,11 +136,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: GtShCliAtnCmd) -> bytes: + def tuple_to_type(cls, tpl: GtShCliAtnCmd) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> GtShCliAtnCmd: diff --git a/src/gwproto/types/gt_sh_multipurpose_telemetry_status.py b/src/gwproto/types/gt_sh_multipurpose_telemetry_status.py index 69952306..98d6194e 100644 --- a/src/gwproto/types/gt_sh_multipurpose_telemetry_status.py +++ b/src/gwproto/types/gt_sh_multipurpose_telemetry_status.py @@ -184,11 +184,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: GtShMultipurposeTelemetryStatus) -> bytes: + def tuple_to_type(cls, tpl: GtShMultipurposeTelemetryStatus) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> GtShMultipurposeTelemetryStatus: diff --git a/src/gwproto/types/gt_sh_simple_telemetry_status.py b/src/gwproto/types/gt_sh_simple_telemetry_status.py index a3992739..0aefdd73 100644 --- a/src/gwproto/types/gt_sh_simple_telemetry_status.py +++ b/src/gwproto/types/gt_sh_simple_telemetry_status.py @@ -169,11 +169,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: GtShSimpleTelemetryStatus) -> bytes: + def tuple_to_type(cls, tpl: GtShSimpleTelemetryStatus) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> GtShSimpleTelemetryStatus: diff --git a/src/gwproto/types/gt_sh_status.py b/src/gwproto/types/gt_sh_status.py index fce496d8..17c70734 100644 --- a/src/gwproto/types/gt_sh_status.py +++ b/src/gwproto/types/gt_sh_status.py @@ -215,11 +215,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: GtShStatus) -> bytes: + def tuple_to_type(cls, tpl: GtShStatus) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> GtShStatus: diff --git a/src/gwproto/types/gt_sh_telemetry_from_multipurpose_sensor.py b/src/gwproto/types/gt_sh_telemetry_from_multipurpose_sensor.py index d3e385a9..64d3fef2 100644 --- a/src/gwproto/types/gt_sh_telemetry_from_multipurpose_sensor.py +++ b/src/gwproto/types/gt_sh_telemetry_from_multipurpose_sensor.py @@ -170,11 +170,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: GtShTelemetryFromMultipurposeSensor) -> bytes: + def tuple_to_type(cls, tpl: GtShTelemetryFromMultipurposeSensor) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> GtShTelemetryFromMultipurposeSensor: diff --git a/src/gwproto/types/gt_telemetry.py b/src/gwproto/types/gt_telemetry.py index 797757c6..1f38cb69 100644 --- a/src/gwproto/types/gt_telemetry.py +++ b/src/gwproto/types/gt_telemetry.py @@ -141,11 +141,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: GtTelemetry) -> bytes: + def tuple_to_type(cls, tpl: GtTelemetry) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> GtTelemetry: diff --git a/src/gwproto/types/heartbeat_b.py b/src/gwproto/types/heartbeat_b.py index 9f6c8aad..7f502706 100644 --- a/src/gwproto/types/heartbeat_b.py +++ b/src/gwproto/types/heartbeat_b.py @@ -194,11 +194,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: HeartbeatB) -> bytes: + def tuple_to_type(cls, tpl: HeartbeatB) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> HeartbeatB: diff --git a/src/gwproto/types/multipurpose_sensor_cac_gt.py b/src/gwproto/types/multipurpose_sensor_cac_gt.py index a4a7c38c..1a889daa 100644 --- a/src/gwproto/types/multipurpose_sensor_cac_gt.py +++ b/src/gwproto/types/multipurpose_sensor_cac_gt.py @@ -191,11 +191,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: MultipurposeSensorCacGt) -> bytes: + def tuple_to_type(cls, tpl: MultipurposeSensorCacGt) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> MultipurposeSensorCacGt: diff --git a/src/gwproto/types/multipurpose_sensor_component_gt.py b/src/gwproto/types/multipurpose_sensor_component_gt.py index ce800355..6f7ecb82 100644 --- a/src/gwproto/types/multipurpose_sensor_component_gt.py +++ b/src/gwproto/types/multipurpose_sensor_component_gt.py @@ -179,11 +179,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: MultipurposeSensorComponentGt) -> bytes: + def tuple_to_type(cls, tpl: MultipurposeSensorComponentGt) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> MultipurposeSensorComponentGt: diff --git a/src/gwproto/types/pipe_flow_sensor_cac_gt.py b/src/gwproto/types/pipe_flow_sensor_cac_gt.py index 738b73f8..beb5a37b 100644 --- a/src/gwproto/types/pipe_flow_sensor_cac_gt.py +++ b/src/gwproto/types/pipe_flow_sensor_cac_gt.py @@ -139,11 +139,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: PipeFlowSensorCacGt) -> bytes: + def tuple_to_type(cls, tpl: PipeFlowSensorCacGt) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> PipeFlowSensorCacGt: diff --git a/src/gwproto/types/pipe_flow_sensor_component_gt.py b/src/gwproto/types/pipe_flow_sensor_component_gt.py index 2c727f71..bcb39c27 100644 --- a/src/gwproto/types/pipe_flow_sensor_component_gt.py +++ b/src/gwproto/types/pipe_flow_sensor_component_gt.py @@ -175,11 +175,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: PipeFlowSensorComponentGt) -> bytes: + def tuple_to_type(cls, tpl: PipeFlowSensorComponentGt) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> PipeFlowSensorComponentGt: diff --git a/src/gwproto/types/power_watts.py b/src/gwproto/types/power_watts.py index 7d73c0f0..03f89a7e 100644 --- a/src/gwproto/types/power_watts.py +++ b/src/gwproto/types/power_watts.py @@ -102,11 +102,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: PowerWatts) -> bytes: + def tuple_to_type(cls, tpl: PowerWatts) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> PowerWatts: diff --git a/src/gwproto/types/relay_cac_gt.py b/src/gwproto/types/relay_cac_gt.py index c30a151f..6585d060 100644 --- a/src/gwproto/types/relay_cac_gt.py +++ b/src/gwproto/types/relay_cac_gt.py @@ -137,11 +137,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: RelayCacGt) -> bytes: + def tuple_to_type(cls, tpl: RelayCacGt) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> RelayCacGt: diff --git a/src/gwproto/types/relay_component_gt.py b/src/gwproto/types/relay_component_gt.py index d19672e2..4668e1b6 100644 --- a/src/gwproto/types/relay_component_gt.py +++ b/src/gwproto/types/relay_component_gt.py @@ -173,11 +173,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: RelayComponentGt) -> bytes: + def tuple_to_type(cls, tpl: RelayComponentGt) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> RelayComponentGt: diff --git a/src/gwproto/types/resistive_heater_cac_gt.py b/src/gwproto/types/resistive_heater_cac_gt.py index 95484b8e..1727cede 100644 --- a/src/gwproto/types/resistive_heater_cac_gt.py +++ b/src/gwproto/types/resistive_heater_cac_gt.py @@ -152,11 +152,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: ResistiveHeaterCacGt) -> bytes: + def tuple_to_type(cls, tpl: ResistiveHeaterCacGt) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> ResistiveHeaterCacGt: diff --git a/src/gwproto/types/resistive_heater_component_gt.py b/src/gwproto/types/resistive_heater_component_gt.py index edddfd97..7bb00e79 100644 --- a/src/gwproto/types/resistive_heater_component_gt.py +++ b/src/gwproto/types/resistive_heater_component_gt.py @@ -170,11 +170,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: ResistiveHeaterComponentGt) -> bytes: + def tuple_to_type(cls, tpl: ResistiveHeaterComponentGt) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> ResistiveHeaterComponentGt: diff --git a/src/gwproto/types/simple_temp_sensor_cac_gt.py b/src/gwproto/types/simple_temp_sensor_cac_gt.py index b125bc8f..fec9dcb6 100644 --- a/src/gwproto/types/simple_temp_sensor_cac_gt.py +++ b/src/gwproto/types/simple_temp_sensor_cac_gt.py @@ -171,11 +171,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: SimpleTempSensorCacGt) -> bytes: + def tuple_to_type(cls, tpl: SimpleTempSensorCacGt) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> SimpleTempSensorCacGt: diff --git a/src/gwproto/types/simple_temp_sensor_component_gt.py b/src/gwproto/types/simple_temp_sensor_component_gt.py index 03e4b928..a050fed8 100644 --- a/src/gwproto/types/simple_temp_sensor_component_gt.py +++ b/src/gwproto/types/simple_temp_sensor_component_gt.py @@ -166,11 +166,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: SimpleTempSensorComponentGt) -> bytes: + def tuple_to_type(cls, tpl: SimpleTempSensorComponentGt) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> SimpleTempSensorComponentGt: diff --git a/src/gwproto/types/snapshot_spaceheat.py b/src/gwproto/types/snapshot_spaceheat.py index bfe6e020..b6b56e70 100644 --- a/src/gwproto/types/snapshot_spaceheat.py +++ b/src/gwproto/types/snapshot_spaceheat.py @@ -128,11 +128,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: SnapshotSpaceheat) -> bytes: + def tuple_to_type(cls, tpl: SnapshotSpaceheat) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> SnapshotSpaceheat: diff --git a/src/gwproto/types/spaceheat_node_gt.py b/src/gwproto/types/spaceheat_node_gt.py index 51b0d93e..9045b2f1 100644 --- a/src/gwproto/types/spaceheat_node_gt.py +++ b/src/gwproto/types/spaceheat_node_gt.py @@ -219,11 +219,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: SpaceheatNodeGt) -> bytes: + def tuple_to_type(cls, tpl: SpaceheatNodeGt) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> SpaceheatNodeGt: diff --git a/src/gwproto/types/ta_data_channels.py b/src/gwproto/types/ta_data_channels.py index 61cec0c2..bf73fa92 100644 --- a/src/gwproto/types/ta_data_channels.py +++ b/src/gwproto/types/ta_data_channels.py @@ -182,11 +182,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: TaDataChannels) -> bytes: + def tuple_to_type(cls, tpl: TaDataChannels) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> TaDataChannels: diff --git a/src/gwproto/types/telemetry_reporting_config.py b/src/gwproto/types/telemetry_reporting_config.py index de06ce7d..8a869304 100644 --- a/src/gwproto/types/telemetry_reporting_config.py +++ b/src/gwproto/types/telemetry_reporting_config.py @@ -185,11 +185,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: TelemetryReportingConfig) -> bytes: + def tuple_to_type(cls, tpl: TelemetryReportingConfig) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> TelemetryReportingConfig: diff --git a/src/gwproto/types/telemetry_snapshot_spaceheat.py b/src/gwproto/types/telemetry_snapshot_spaceheat.py index 414347f7..31276e36 100644 --- a/src/gwproto/types/telemetry_snapshot_spaceheat.py +++ b/src/gwproto/types/telemetry_snapshot_spaceheat.py @@ -171,11 +171,11 @@ def __init__( ) @classmethod - def tuple_to_type(cls, tuple: TelemetrySnapshotSpaceheat) -> bytes: + def tuple_to_type(cls, tpl: TelemetrySnapshotSpaceheat) -> bytes: """ Given a Python class object, returns the serialized JSON type object. """ - return tuple.as_type() + return tpl.as_type() @classmethod def type_to_tuple(cls, t: bytes) -> TelemetrySnapshotSpaceheat: