diff --git a/attr/_make.py b/attr/_make.py index 7148b6e4..dfe5050b 100644 --- a/attr/_make.py +++ b/attr/_make.py @@ -100,7 +100,7 @@ def _transform_attrs(cl): a = Attribute.from_counting_attr(name=attr_name, ca=ca) if had_default is True and a.default is NOTHING: raise ValueError( - "No mandatory attributes allowed after an atribute with a " + "No mandatory attributes allowed after an attribute with a " "default value or factory. Attribute in question: {a!r}" .format(a=a) ) diff --git a/tests/test_make.py b/tests/test_make.py index 8394008b..8f6fded4 100644 --- a/tests/test_make.py +++ b/tests/test_make.py @@ -90,7 +90,7 @@ class TestTransformAttrs(object): with pytest.raises(ValueError) as e: _transform_attrs(C) assert ( - "No mandatory attributes allowed after an atribute with a " + "No mandatory attributes allowed after an attribute with a " "default value or factory. Attribute in question: Attribute" "(name='y', default=NOTHING, validator=None, no_repr=False, " "no_cmp=False, no_hash=False, no_init=False)",