Skip to content

Commit eaa17d7

Browse files
authored
chore: pydanticv2 deprecation warning - access model_fields through class (#199)
Signed-off-by: Morgan Epp <60796713+epmog@users.noreply.github.com>
1 parent ed30b7f commit eaa17d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openjd/model/_internal/_create_job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def instantiate_model( # noqa: C901
8080
elif create_as_metadata.callable is not None:
8181
target_model = create_as_metadata.callable(model)
8282

83-
for field_name in model.model_fields.keys():
83+
for field_name in model.__class__.model_fields.keys():
8484
if field_name in model._job_creation_metadata.exclude_fields:
8585
# The field is marked for being excluded
8686
continue

0 commit comments

Comments
 (0)