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 4357091 commit 4276976Copy full SHA for 4276976
sqlmodel/main.py
@@ -61,11 +61,7 @@
61
PYDANTIC_MINOR_VERSION,
62
BaseConfig,
63
ModelField,
64
- ModelMetaclass,
65
- Representation,
66
SQLModelConfig,
67
- Undefined,
68
- UndefinedType,
69
_calculate_keys,
70
finish_init,
71
get_annotations,
@@ -89,6 +85,8 @@
89
85
from pydantic._internal._repr import Representation as Representation
90
86
from pydantic_core import PydanticUndefined as Undefined
91
87
from pydantic_core import PydanticUndefinedType as UndefinedType
88
+else:
+ from ._compat import ModelMetaclass, Representation, Undefined, UndefinedType
92
93
_T = TypeVar("_T")
94
NoArgAnyCallable = Callable[[], Any]
0 commit comments