Closed alexrudd2 closed 2 months ago
Basically all base classes need to be corrected, the problem will be the tests.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
this is implemented in respect of the new architecture.
There are many instances of base classes that are inherited, such
ModbusBaseClient
.Usually there are methods defined in the base class that are then overridden in the subclasses. Implementations vary - sometimes it's blank, sometimes
raise NotImplementedError
, sometimes a dummy return value.There may be a good opportunity to use
abc.ABC
(Abstract Base Classes) to define these in a more consistent way.See https://github.com/pymodbus-dev/pymodbus/pull/2032#discussion_r1496268967