File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 33from inspect import signature
44from typing import Any
55
6- from packaging .version import Version
76import pydantic
87import pydantic .version
8+ from packaging .version import Version
99
1010PYDANTIC2 = Version (pydantic .version .VERSION ) >= Version ("2" )
1111PYDANTIC2_10 = Version (pydantic .version .VERSION ) >= Version ("2.10" )
Original file line number Diff line number Diff line change 1- from packaging .version import Version
21import pydantic .version
2+ from packaging .version import Version
33
44if Version (pydantic .version .VERSION ) < Version ("2" ): # pragma: no cover
55 raise ImportError ("pydantic_compat._v2 only supports pydantic v2.x" )
Original file line number Diff line number Diff line change 55from pydantic import BaseModel
66from pydantic ._internal import _model_construction
77
8- from pydantic_compat ._shared import PYDANTIC2_10 , V2_RENAMED_CONFIG_KEYS , check_mixin_order
8+ from pydantic_compat ._shared import (
9+ PYDANTIC2_10 ,
10+ V2_RENAMED_CONFIG_KEYS ,
11+ check_mixin_order ,
12+ )
913
1014if TYPE_CHECKING :
1115 from pydantic import ConfigDict
You can’t perform that action at this time.
0 commit comments