We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d32743d + d0ad412 commit 7575ad4Copy full SHA for 7575ad4
pydantic_changedetect/_compat.py
@@ -37,7 +37,7 @@ def __init__(
37
38
@property
39
def model_fields(self) -> dict[str, FieldInfo]:
40
- return self.obj.model_fields
+ return self.obj.__class__.model_fields
41
42
def get_model_field_info_annotation(self, model_field: FieldInfo) -> type[Any]:
43
if model_field.annotation is None:
0 commit comments