diff --git a/openff/evaluator/attributes/attributes.py b/openff/evaluator/attributes/attributes.py index b03dc1a4..5fcbfb45 100644 --- a/openff/evaluator/attributes/attributes.py +++ b/openff/evaluator/attributes/attributes.py @@ -53,6 +53,11 @@ class AttributeClass(TypedBaseModel): attributes with additional metadata. """ + def __init__(self, **kwargs): + super().__init__() + for k, v in kwargs.items(): + setattr(self, k, v) + def validate(self, attribute_type=None): """Validate the values of the attributes. If `attribute_type` is set, only attributes of that type will be validated.