Skip to content

Commit 58b11a2

Browse files
committed
fixup! [FIX] pydantic: Makes issubclass on BaseModel working with generics
1 parent 032310d commit 58b11a2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

pydantic/tests/test_pydantic.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Copyright 2021 ACSONE SA/NV
22
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)
33

4-
from typing import List, Literal
4+
from typing import List
5+
6+
try:
7+
from typing import Literal
8+
except ImportError:
9+
from typing_extensions import Literal
510

611
import pydantic
712

0 commit comments

Comments
 (0)