in utils/generator.py [0:0]
def add_dict_type(type_):
"""Add Dict[str, Any] to a Python type hint."""
if type_.startswith("Union["):
type_ = f"{type_[:-1]}, Dict[str, Any]]"
else:
type_ = f"Union[{type_}, Dict[str, Any]]"
return type_