Skip to content

Commit

Permalink
use safer, recommended workaround for #15611 (#15634)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz authored Oct 9, 2024
1 parent aa5171d commit da21962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prefect/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def resolve_block_reference(data: Any) -> Any:
# Get the updated parameter dict with cast values from the model
cast_parameters = {
k: v
for k, v in model.__dict__.items()
for k, v in dict(iter(model)).items()
if k in model.model_fields_set or model.model_fields[k].default_factory
}
return cast_parameters
Expand Down

0 comments on commit da21962

Please sign in to comment.