Skip to content

Commit 346bf58

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fms_mo/utils/qconfig_utils.py

Lines changed: 2 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,7 @@ 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(config: dict, minimal: bool = True) -> tuple[dict, dict]:
462462
"""Remove deprecated items or things cannot be saved as text (json)"""
463463
unwanted_items = [
464464
"sweep_cv_percentile",

0 commit comments

Comments
 (0)