Skip to content

Commit d0ad412

Browse files
authored
Address Future Deprecation
1 parent d32743d commit d0ad412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_changedetect/_compat.py

Lines changed: 1 addition & 1 deletion
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)