Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion attr/_make.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_make.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class C(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)",
Expand Down