We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af790ee commit 346bf58Copy full SHA for 346bf58
fms_mo/utils/qconfig_utils.py
@@ -435,7 +435,7 @@ def has_non_serializable_object(anything: Any) -> bool:
435
return is_not_serializable
436
437
438
-def serialize_config(config: dict):
+def serialize_config(config: dict) -> tuple[dict,dict]:
439
"""
440
Util function to clean config of any non-serializable key,val pairs
441
@@ -458,7 +458,7 @@ def serialize_config(config: dict):
458
return config, dump
459
460
461
-def remove_unwanted_from_config(config: dict, minimal: bool = True):
+def remove_unwanted_from_config(config: dict, minimal: bool = True) -> tuple[dict, dict]:
462
"""Remove deprecated items or things cannot be saved as text (json)"""
463
unwanted_items = [
464
"sweep_cv_percentile",
0 commit comments