Skip to content

Commit

Permalink
Improve type of parameter values of write_registers (#2411)
Browse files Browse the repository at this point in the history
  • Loading branch information
MAKOMO authored Oct 24, 2024
1 parent 13d29a7 commit 144e43b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pymodbus/client/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from __future__ import annotations

import struct
from collections.abc import Sequence
from enum import Enum
from typing import Generic, TypeVar

Expand Down Expand Up @@ -341,7 +342,7 @@ def write_coils(
def write_registers(
self,
address: int,
values: list[bytes | int],
values: Sequence[bytes | int],
slave: int = 1,
skip_encode: bool = False,
no_response_expected: bool = False
Expand Down

0 comments on commit 144e43b

Please sign in to comment.