mirror of https://github.com/MISP/PyMISPGalaxies
Switch Literal import based on Python version.
parent
a5edb31f2b
commit
f4d3209f0a
|
@ -9,6 +9,10 @@ from collections.abc import Mapping
|
|||
from glob import glob
|
||||
import re
|
||||
from typing import List, Dict, Optional, Any, Tuple, Iterator, overload, Union
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from typing import Literal
|
||||
else:
|
||||
from typing_extensions import Literal
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue