Skip to content

Commit 1fa06cb

Browse files
committed
Fix a circular import.
1 parent 295f907 commit 1fa06cb

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

openlcb/datagramservice.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@
2222
2) Once the link has been quiesced, datagrams are held until it's restarted
2323
'''
2424

25-
from enum import Enum
2625
import logging
26+
27+
from enum import Enum
2728
from typing import (
29+
Any,
2830
Callable,
2931
List, # in case list doesn't support `[` in this Python version
3032
Union, # in case `|` doesn't support 'type' in this Python version
@@ -34,10 +36,10 @@
3436
from openlcb.message import Message
3537
from openlcb.mti import MTI
3638
from openlcb.nodeid import NodeID
37-
from openlcb.memoryservice import DatagramWriteMemo
3839

3940

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
4143
'''default handling of reply does nothing'''
4244
pass
4345

0 commit comments

Comments
 (0)