We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd28efe commit b5e41feCopy full SHA for b5e41fe
1 file changed
elementary/utils/pydantic_shim.py
@@ -11,17 +11,21 @@
11
if pydantic_major == "1":
12
from pydantic import ( # type: ignore # noqa
13
BaseModel,
14
+ EmailStr,
15
Extra,
16
Field,
17
+ ValidationError,
18
create_model,
19
root_validator,
20
validator,
21
)
22
elif pydantic_major == "2":
23
from pydantic.v1 import ( # type: ignore # noqa
24
25
26
27
28
29
30
31
0 commit comments