Skip to content

Commit a9fc766

Browse files
committed
Refactor to use PYDANTIC_V2 from _compat
1 parent dda7048 commit a9fc766

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

aredis_om/model/model.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,9 +1643,6 @@ def redisearch_schema(cls):
16431643

16441644
def check(self):
16451645
"""Run all validations."""
1646-
from pydantic.version import VERSION as PYDANTIC_VERSION
1647-
1648-
PYDANTIC_V2 = PYDANTIC_VERSION.startswith("2.")
16491646
if not PYDANTIC_V2:
16501647
*_, validation_error = validate_model(self.__class__, self.__dict__)
16511648
if validation_error:

0 commit comments

Comments
 (0)