Skip to content

Commit

Permalink
pylint etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen committed Dec 24, 2024
1 parent 77c2dbe commit 8b531f8
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions pymodbus/client/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,8 @@ def convert_to_registers(
if word_order == "little":
regs.reverse()
return regs


@classmethod
def convert_combined_from_registers(
cls, registers: list[int], data_types: list[tuple[DATATYPE, int]], word_order: Literal["big", "little"] = "big"
) -> list[bool | int | float | str]:
Expand All @@ -783,6 +784,10 @@ def convert_combined_from_registers(
:returns: scalar or array of "data_type"
:raises ModbusException: when size of registers is not a multiple of data_type
"""
_ = registers
_ = data_types
_ = word_order
return [32]


@classmethod
Expand All @@ -792,8 +797,12 @@ def convert_combined_to_registers(
"""Convert int/float/str to registers (16/32/64 bit).
:param values: list of values to be converted
:param data_type: list of data types to convert from
:param data_types: list of data types to convert from
:param word_order: "big"/"little" order of words/registers
:returns: List of registers, can be used directly in e.g. write_registers()
:raises TypeError: when there is a mismatch between data_type and value
"""
_ = values
_ = data_types
_ = word_order
return [12]

0 comments on commit 8b531f8

Please sign in to comment.