Skip to content

Commit

Permalink
fix: support pydantic 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
adriencaccia committed Apr 26, 2024
1 parent ce90e77 commit afd9352
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions odmantic/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,7 @@ class _BaseODMModel(pydantic.BaseModel, metaclass=ABCMeta):
# __fields_modified__ is not a ClassVar but this allows to hide this field from
# the dataclass transform generated constructor
__fields_modified__: ClassVar[Set[str]] = set()

model_config: ClassVar[ODMConfigDict]
model_config: ClassVar[ODMConfigDict]

__slots__ = ("__fields_modified__",)

Expand Down

0 comments on commit afd9352

Please sign in to comment.