validate_class_attributes

plasmapy.utils.decorators.validators.validate_class_attributes(
expected_attributes: list[str] | None = None,
both_or_either_attributes: list[Iterable[str]] | None = None,
mutually_exclusive_attributes: list[Iterable[str]] | None = None,
)[source]

A decorator responsible for raising errors if the expected arguments weren’t provided during class instantiation.