Skip to content

Commit 5cd3ae5

Browse files
committed
Solve pylint error.
1 parent 4057780 commit 5cd3ae5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pymodbus/datastore/context.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ def setValues(self, fc_as_hex: int, address: int, values: list[int | bool]) -> N
7373
# Slave Contexts
7474
# ---------------------------------------------------------------------------#
7575
class ModbusSlaveContext(ModbusBaseSlaveContext):
76-
"""
77-
Create a modbus data model with each data access stored in a
78-
block.
76+
"""Create a modbus data model with data stored in a block.
7977
8078
:param di: discrete inputs initializer ModbusDataBlock
8179
:param co: coils initializer ModbusDataBlock
@@ -91,12 +89,11 @@ class ModbusSlaveContext(ModbusBaseSlaveContext):
9189
specification.
9290
9391
Default is False.
92+
9493
"""
9594

9695
def __init__(self, *_args, **kwargs):
97-
"""Initialize the datastores.
98-
99-
"""
96+
"""Initialize the datastores."""
10097
self.store = {}
10198
self.store["d"] = kwargs.get("di", ModbusSequentialDataBlock.create())
10299
self.store["c"] = kwargs.get("co", ModbusSequentialDataBlock.create())

0 commit comments

Comments
 (0)