From 4a0ede3017a9b2d5a9421295d0e7175260da5d86 Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (ACSONE)" Date: Mon, 13 Nov 2023 18:34:07 +0100 Subject: [PATCH] Fix compatibility issue with pydantic 2.5.0 Import FieldInfo from its original package --- src/extendable_pydantic/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/extendable_pydantic/main.py b/src/extendable_pydantic/main.py index 0fb2cec..7a03109 100644 --- a/src/extendable_pydantic/main.py +++ b/src/extendable_pydantic/main.py @@ -15,7 +15,8 @@ from typing import _Final as _TypingBase # type: ignore[attr-defined,unused-ignore] from pydantic._internal._model_construction import ModelMetaclass -from pydantic.main import BaseModel, FieldInfo +from pydantic.fields import FieldInfo +from pydantic.main import BaseModel from .utils import all_identical, resolve_annotation