Skip to content

Commit

Permalink
fix more types
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrudd2 committed Feb 11, 2024
1 parent 2be307f commit 8dbf945
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pymodbus/repl/client/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def __init__(self, name, signature, doc, slave=False):
self._params = signature.parameters
self.args = self.create_completion()
else:
self._params = ""
self._params = {}

if self.name.startswith("client.") and slave:
self.args.update(**DEFAULT_KWARGS)
Expand Down Expand Up @@ -232,7 +232,7 @@ class Result:
"""Represent result command."""

function_code: int | None = None
data: dict[int, Any] | None = None
data: dict[str, Any] = {}

def __init__(self, result):
"""Initialize.
Expand Down
2 changes: 1 addition & 1 deletion pymodbus/repl/client/mclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def _execute_diagnostic_request(self, request):
}
return ExtendedRequestSupport._process_exception(resp, slave=request.slave_id)

def return_query_data(self, message=0, **kwargs):
def return_query_data(self, message=b"\x00", **kwargs):
"""Loop back data sent in response.
:param message: Message to be looped back
Expand Down

0 comments on commit 8dbf945

Please sign in to comment.