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 fff3002 commit fded273Copy full SHA for fded273
sqlmodel/_compat.py
@@ -25,8 +25,8 @@
25
26
# Reassign variable to make it reexported for mypy
27
PYDANTIC_VERSION = P_VERSION
28
-PYDANTIC_MINOR_VERSION = tuple(int(i) for i in P_VERSION.split(".", 2)[:2])
29
-IS_PYDANTIC_V2 = PYDANTIC_MINOR_VERSION[0] >= 2
+PYDANTIC_MINOR_VERSION = tuple(int(i) for i in P_VERSION.split(".")[:2])
+IS_PYDANTIC_V2 = PYDANTIC_MINOR_VERSION[0] == 2
30
31
32
if TYPE_CHECKING:
0 commit comments