From 7ea7c699e0ae5cd3a50ddf6225d4f12d477e15b6 Mon Sep 17 00:00:00 2001 From: belthlemar Date: Wed, 2 Oct 2024 16:06:32 +0200 Subject: [PATCH] fix typing --- antarest/study/business/areas/st_storage_management.py | 3 ++- antarest/study/business/areas/thermal_management.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/antarest/study/business/areas/st_storage_management.py b/antarest/study/business/areas/st_storage_management.py index 3cd4641410..8c1a197861 100644 --- a/antarest/study/business/areas/st_storage_management.py +++ b/antarest/study/business/areas/st_storage_management.py @@ -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( diff --git a/antarest/study/business/areas/thermal_management.py b/antarest/study/business/areas/thermal_management.py index 9775a71265..2786617cc1 100644 --- a/antarest/study/business/areas/thermal_management.py +++ b/antarest/study/business/areas/thermal_management.py @@ -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(