Skip to content

Commit 314520c

Browse files
committed
Simplify imports in grammar.py
1 parent 8636323 commit 314520c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/daidepp/grammar/grammar.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
from typing import Dict, Tuple
88

99
try:
10-
from typing import Literal
11-
from typing import get_args
10+
from typing import Literal, get_args
1211
except ImportError:
13-
from typing_extensions import Literal
14-
from typing_extensions import get_args
12+
from typing_extensions import Literal, get_args
1513

1614
DAIDELevel = Literal[
1715
0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160

0 commit comments

Comments
 (0)