Skip to content
Snippets Groups Projects
Commit c1782415 authored by Joscha Schmiedt's avatar Joscha Schmiedt
Browse files

Prevent import of Literal for Python < 3.8

parent b2fdaed4
No related branches found
No related tags found
2 merge requests!143Release 0.15.0,!67Add type hints to models.py
Pipeline #48899 failed
......@@ -24,7 +24,9 @@
#
import re
from typing import Literal
import sys
if sys.version_info >= (3, 8):
from typing import Literal
from ..exceptions import EmptyUniqueQueryError, QueryNotUniqueError
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment