in cfn_tools/_config.py [0:0]
def __setattr__(self, key: str, value: Any) -> Any:
if key not in _CONFIG_DEFAULTS:
raise TypeError(
f"{key} is not a valid configuration. " f"Please use: {list(_CONFIG_DEFAULTS.keys())}"
)
value = self._apply_type(
name=key, value=value, dtype=_CONFIG_DEFAULTS[key].dtype, nullable=_CONFIG_DEFAULTS[key].nullable
)
super().__setattr__(f"_{key}", value)