Skip to content

Commit 0cfbde5

Browse files
coulingjaniversen
authored andcommitted
Revert type hint change
1 parent 385eaca commit 0cfbde5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymodbus/transport/transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def __init__(
198198
host, port = parts[1][2:], int(parts[2])
199199
self.init_setup_connect_listen(host, port)
200200

201-
def init_setup_connect_listen(self, host: str | None, port: int) -> None:
201+
def init_setup_connect_listen(self, host: str, port: int) -> None:
202202
"""Handle connect/listen handler."""
203203
if self.comm_params.comm_type == CommType.SERIAL:
204204
self.call_create = lambda: create_serial_connection(

0 commit comments

Comments
 (0)