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