in src/smclarify/bias/report.py [0:0]
def inf_as_str(obj: Dict) -> Dict:
"""Checks each dict passed to this function if it contains the key "value" with infinity float value assigned
:param obj: The object to decode
:return: The new dictionary with change in value from float('inf') to "Infinity"
"""
if "value" in obj and obj["value"] in [float("inf"), float("-inf")]:
obj["value"] = str(obj["value"]).replace("inf", "Infinity")
return obj