minimal patch for fedora34

addresses ProviderConfiguration is  not a mapping problem
This commit is contained in:
Daniel L. Wang
2021-10-18 16:29:06 -07:00
parent a4e6f19a33
commit 8eb5f73289

View File

@@ -70,11 +70,11 @@ def encode_providers(
) -> Dict[str, Dict[str, Any]]:
return {
id_: {
**config,
"ground_truth_adapter_type": config["ground_truth_adapter_type"].__name__,
**(config.__dict__),
"ground_truth_adapter_type": config.ground_truth_adapter_type.__name__,
"caching_adapter_type": (
cast(type, config.get("caching_adapter_type")).__name__
if config.get("caching_adapter_type")
if config.caching_adapter_type is None
else None
),
}