Switch Literal import based on Python version.

pull/5/head
Christian Keil 2021-11-05 11:04:28 +01:00
parent a5edb31f2b
commit f4d3209f0a
1 changed files with 5 additions and 1 deletions

View File

@ -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: