Skip to content

Commit f1dcac6

Browse files
fix: handle TYPE_CHECKING correctly
1 parent 40a3e23 commit f1dcac6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tcp_modbus_aio/client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
@dataclass
3232
class CoilWatchStatus:
33-
msg: ModbusFunction
33+
msg: "ModbusFunction"
3434

3535
memo_key: Any
3636
expiry: float
@@ -228,7 +228,7 @@ async def close(self) -> None:
228228
self._ping_loop = None
229229

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

0 commit comments

Comments
 (0)