Skip to content

Commit 4591870

Browse files
committed
chore: Added returns for several qconfing_util functions
Signed-off-by: Brandon Groth <[email protected]>
1 parent af790ee commit 4591870

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fms_mo/utils/qconfig_utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ def has_non_serializable_object(anything: Any) -> bool:
435435
return is_not_serializable
436436

437437

438-
def serialize_config(config: dict):
438+
def serialize_config(config: dict) -> tuple[dict, dict]:
439439
"""
440440
Util function to clean config of any non-serializable key,val pairs
441441
"""
@@ -458,7 +458,9 @@ def serialize_config(config: dict):
458458
return config, dump
459459

460460

461-
def remove_unwanted_from_config(config: dict, minimal: bool = True):
461+
def remove_unwanted_from_config(
462+
config: dict, minimal: bool = True
463+
) -> tuple[dict, dict]:
462464
"""Remove deprecated items or things cannot be saved as text (json)"""
463465
unwanted_items = [
464466
"sweep_cv_percentile",

0 commit comments

Comments
 (0)