Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Oct 2, 2024
1 parent 1d7c52d commit 7ea7c69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion antarest/study/business/areas/st_storage_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ def update_storages_props(

# Convert the DTO to a configuration object and update the configuration file.
properties = create_st_storage_config(
StudyVersion.parse(study.version), **new_cluster.model_dump(mode="json", by_alias=False, exclude_none=True)
StudyVersion.parse(study.version),
**new_cluster.model_dump(mode="json", by_alias=False, exclude_none=True),
)
path = _STORAGE_LIST_PATH.format(area_id=area_id, storage_id=storage_id)
cmd = UpdateConfig(
Expand Down
3 changes: 2 additions & 1 deletion antarest/study/business/areas/thermal_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ def update_thermals_props(

# Convert the DTO to a configuration object and update the configuration file.
properties = create_thermal_config(
StudyVersion.parse(study.version), **new_cluster.model_dump(mode="json", by_alias=False, exclude_none=True)
StudyVersion.parse(study.version),
**new_cluster.model_dump(mode="json", by_alias=False, exclude_none=True),
)
path = _CLUSTER_PATH.format(area_id=area_id, cluster_id=thermal_id)
cmd = UpdateConfig(
Expand Down

0 comments on commit 7ea7c69

Please sign in to comment.