Skip to content

Commit f7275c1

Browse files
committed
Run pydantic-bump
1 parent 028a0dc commit f7275c1

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

diffsync/__init__.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from inspect import isclass
1919
from typing import Callable, ClassVar, Dict, List, Optional, Tuple, Type, Union, Any, Set
2020

21-
from pydantic import BaseModel, PrivateAttr
21+
from pydantic import ConfigDict, BaseModel, PrivateAttr
2222
import structlog # type: ignore
2323

2424
from diffsync.diff import Diff
@@ -104,12 +104,7 @@ class DiffSyncModel(BaseModel):
104104

105105
_status_message: str = PrivateAttr("")
106106
"""Message, if any, associated with the create/update/delete status value."""
107-
108-
class Config: # pylint: disable=too-few-public-methods
109-
"""Pydantic class configuration."""
110-
111-
# Let us have a DiffSync as an instance variable even though DiffSync is not a Pydantic model itself.
112-
arbitrary_types_allowed = True
107+
model_config = ConfigDict(arbitrary_types_allowed=True)
113108

114109
def __init_subclass__(cls) -> None:
115110
"""Validate that the various class attribute declarations correspond to actual instance fields.

0 commit comments

Comments
 (0)