Skip to content

Commit fded273

Browse files
authored
Apply suggestions from code review
1 parent fff3002 commit fded273

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlmodel/_compat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
# Reassign variable to make it reexported for mypy
2727
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
28+
PYDANTIC_MINOR_VERSION = tuple(int(i) for i in P_VERSION.split(".")[:2])
29+
IS_PYDANTIC_V2 = PYDANTIC_MINOR_VERSION[0] == 2
3030

3131

3232
if TYPE_CHECKING:

0 commit comments

Comments
 (0)