Skip to content

Commit

Permalink
mypy complaints. (#1656)
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen authored Jul 14, 2023
1 parent 04117df commit e3426af
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pymodbus/client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ class _params:
def __init__( # pylint: disable=too-many-arguments
self,
framer: type[ModbusFramer] = None,
timeout: str | float = 3,
retries: str | int = 3,
timeout: float = 3,
retries: int = 3,
retry_on_empty: bool = False,
close_comm_on_error: bool = False,
strict: bool = True,
broadcast_enable: bool = False,
reconnect_delay: int = 0.1,
reconnect_delay_max: int = 300,
reconnect_delay: float = 0.1,
reconnect_delay_max: float = 300,
on_reconnect_callback: Callable[[], None] | None = None,
**kwargs: Any,
) -> None:
Expand Down Expand Up @@ -104,7 +104,6 @@ def __init__( # pylint: disable=too-many-arguments
)
else:
self.comm_params = setup_params
self.framer = framer
self.params = self._params()
self.params.retries = int(retries)
self.params.retry_on_empty = bool(retry_on_empty)
Expand Down

0 comments on commit e3426af

Please sign in to comment.