Skip to content

Commit c6ec91c

Browse files
committed
Added support for keyword-only attributes. Closes #106, and closes #38
1 parent efe8aee commit c6ec91c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/attr/_make.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ def _transform_attrs(cls, these):
275275
elif (had_default is False and
276276
a.default is not NOTHING and
277277
a.init is not False and
278-
# Keyword-only attributes can be specified after keyword-only
279-
# attributes with default values.
278+
# Keyword-only attributes without defaults can be specified
279+
# after keyword-only attributes with defaults.
280280
a.kwonly is False):
281281
had_default = True
282282
if was_kwonly is True and a.kwonly is False:

0 commit comments

Comments
 (0)