Skip to content

Commit 6bf8504

Browse files
committed
client/base: type hinting
1 parent 7682edd commit 6bf8504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymodbus/client/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def idle_time(self) -> float:
187187
return 0
188188
return self.last_frame_end + self.silent_interval
189189

190-
def execute(self, no_response_expected: bool, request: ModbusPDU) -> ModbusPDU:
190+
def execute(self, no_response_expected: bool, request: ModbusPDU) -> tuple[ModbusPDU, int]:
191191
"""Execute request and get response (call **sync/async**).
192192
193193
:param no_response_expected: The client will not expect a response to the request

0 commit comments

Comments
 (0)