Skip to content

netlist_carpentry.utils.safe_format_dict

Custom dictionary, only used for string formatting via str.format_map that allows missing entries.

Classes:

  • SafeFormatDict

    Simple Dictionary class used for str.format_map to ignore unset placeholders instead of raising an error.

SafeFormatDict

Bases: Dict[str, str]

Simple Dictionary class used for str.format_map to ignore unset placeholders instead of raising an error.