Skip to content

Commit

Permalink
fix: handle TYPE_CHECKING correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafishman authored May 1, 2024
1 parent 40a3e23 commit f1dcac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tcp_modbus_aio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

@dataclass
class CoilWatchStatus:
msg: ModbusFunction
msg: "ModbusFunction"

memo_key: Any
expiry: float
Expand Down Expand Up @@ -228,7 +228,7 @@ async def close(self) -> None:
self._ping_loop = None

def log_watch(
self, msg: ModbusFunction, *, memo_key: Any, period: float, hz: float
self, msg: "ModbusFunction", *, memo_key: Any, period: float, hz: float
) -> None:
"""
Triggers a loop that reads the coil(s) at the given index at the given frequency and
Expand Down

0 comments on commit f1dcac6

Please sign in to comment.