1 parent 295f907 commit 1fa06cbCopy full SHA for 1fa06cb
1 file changed
openlcb/datagramservice.py
@@ -22,9 +22,11 @@
22
2) Once the link has been quiesced, datagrams are held until it's restarted
23
'''
24
25
-from enum import Enum
26
import logging
+
27
+from enum import Enum
28
from typing import (
29
+ Any,
30
Callable,
31
List, # in case list doesn't support `[` in this Python version
32
Union, # in case `|` doesn't support 'type' in this Python version
@@ -34,10 +36,10 @@
34
36
from openlcb.message import Message
35
37
from openlcb.mti import MTI
38
from openlcb.nodeid import NodeID
-from openlcb.memoryservice import DatagramWriteMemo
39
40
-def defaultIgnoreReply(memo: Union[DatagramWriteMemo, None]):
41
+def defaultIgnoreReply(memo: Union[Any, None]):
42
+ # ^ DatagramWriteMemo is the type, but that is not defined yet
43
'''default handling of reply does nothing'''
44
pass
45
0 commit comments