_ConfigBase.from_dict

Contents

_ConfigBase.from_dict#

classmethod _ConfigBase.from_dict(dict_: dict[str, Any]) Self[source]#

Create an instance from a dictionary of attribute values.

Parameters:
dict_dict

Mapping of public attribute name to value, as produced by to_dict(). Nested config objects are recursively reconstructed via their own from_dict. A key that is not a valid attribute of cls is skipped with a warning instead of raising, so a dict saved by a different pyvista version can still be loaded.

Returns:
Self

New instance of cls populated from dict_.