We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 032310d commit 58b11a2Copy full SHA for 58b11a2
1 file changed
pydantic/tests/test_pydantic.py
@@ -1,7 +1,12 @@
1
# Copyright 2021 ACSONE SA/NV
2
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)
3
4
-from typing import List, Literal
+from typing import List
5
+
6
+try:
7
+ from typing import Literal
8
+except ImportError:
9
+ from typing_extensions import Literal
10
11
import pydantic
12
0 commit comments