Skip to content

Commit 3378bab

Browse files
committed
Remove unneeded Python 3.7 guard
1 parent 527b7d0 commit 3378bab

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/rushd/flow.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@
88
import re
99
import warnings
1010
from pathlib import Path
11-
from typing import Any, Dict, List, Optional, Union
12-
13-
# Support Python 3.7 by importing Literal from typing_extensions
14-
try:
15-
from typing import Literal # type: ignore
16-
except ImportError:
17-
from typing_extensions import Literal
11+
from typing import Any, Dict, List, Literal, Optional, Union
1812

1913
import matplotlib.pyplot as plt
2014
import numpy as np

src/rushd/plot.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22

33
import itertools
44
import pathlib
5-
from typing import Any, Dict, List, Optional, Tuple, Union
6-
7-
# Support Python 3.7 by importing Literal from typing_extensions
8-
try:
9-
from typing import Literal # type: ignore
10-
except ImportError:
11-
from typing_extensions import Literal
5+
from typing import Any, Dict, List, Literal, Optional, Tuple, Union
126

137
import matplotlib
148
import matplotlib.colors

0 commit comments

Comments
 (0)