Lots of functions are currently annotated like Dict[str, Union[int, str, float, Path, bool]].
This is a pain and mostly wrong (since most functions would actually work perfectly fine with other types as values or even keys). It's main purpose is to make sure that reading and writing YAML works the way we expect it too. The place to make sure of that is unit tests for dict_to_asset_yaml and asset_yaml_to_dict, though.
Hence: Write those unit tests and reduce the type annotation for everything else to Dict[str, Any] at most.
Lots of functions are currently annotated like
Dict[str, Union[int, str, float, Path, bool]]
. This is a pain and mostly wrong (since most functions would actually work perfectly fine with other types as values or even keys). It's main purpose is to make sure that reading and writing YAML works the way we expect it too. The place to make sure of that is unit tests fordict_to_asset_yaml
andasset_yaml_to_dict
, though.Hence: Write those unit tests and reduce the type annotation for everything else to
Dict[str, Any]
at most.