Skip to content

Commit 7575ad4

Browse files
authored
Merge pull request #45 from meneses-pt/main
Address Future Deprecation
2 parents d32743d + d0ad412 commit 7575ad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_changedetect/_compat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(
3737

3838
@property
3939
def model_fields(self) -> dict[str, FieldInfo]:
40-
return self.obj.model_fields
40+
return self.obj.__class__.model_fields
4141

4242
def get_model_field_info_annotation(self, model_field: FieldInfo) -> type[Any]:
4343
if model_field.annotation is None:

0 commit comments

Comments
 (0)