Skip to content

Commit 510f368

Browse files
authored
chore: remove obsolete version_info check (#2444)
1 parent 84ad249 commit 510f368

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

bertopic/_bertopic.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,7 @@
2929
from scipy.cluster import hierarchy as sch
3030
from importlib.util import find_spec
3131

32-
# Typing
33-
import sys
34-
35-
if sys.version_info >= (3, 8):
36-
from typing import Literal
37-
else:
38-
from typing_extensions import Literal
39-
from typing import List, Tuple, Union, Mapping, Any, Callable, Iterable, TYPE_CHECKING
32+
from typing import List, Tuple, Union, Mapping, Any, Callable, Iterable, TYPE_CHECKING, Literal
4033

4134
# Plotting
4235
if find_spec("plotly") is None:

0 commit comments

Comments
 (0)