Skip to content

Commit 3a442cc

Browse files
authored
Fixed broken compatibility with Python 3.7 (#208)
1 parent 8f97ee4 commit 3a442cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

udsoncan/typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from udsoncan.common.DidCodec import DidCodec
2-
from typing import Dict, Optional, Any, Callable, Union, Type, Literal
2+
from typing import Dict, Optional, Any, Callable, Union, Type
33
import sys
44

55
if sys.version_info < (3, 8):
@@ -22,7 +22,7 @@ class IOConfigEntry(TypedDict, total=False):
2222
mask_size: int
2323

2424

25-
IOConfig = Dict[Union[int, Literal['default']], Union[IOConfigEntry, CodecDefinition]]
25+
IOConfig = Dict[Union[int, str], Union[IOConfigEntry, CodecDefinition]]
2626

2727

2828
class ClientConfig(TypedDict, total=False):

0 commit comments

Comments
 (0)