Skip to content

Commit

Permalink
Clarify that unannotated attributes are ignored too
Browse files Browse the repository at this point in the history
Ref #220
  • Loading branch information
hynek committed Oct 1, 2019
1 parent f083cd7 commit 754fae0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/attr/_make.py
Expand Up @@ -888,7 +888,8 @@ def attrs(
``attr.ib(default=42)``. Passing an instance of `Factory` also
works as expected.
Attributes annotated as `typing.ClassVar` are **ignored**.
Attributes annotated as `typing.ClassVar`, and attributes that are
neither annotated nor set to an `attr.ib` are **ignored**.
.. _`PEP 526`: https://www.python.org/dev/peps/pep-0526/
:param bool kw_only: Make all attributes keyword-only (Python 3+)
Expand Down

0 comments on commit 754fae0

Please sign in to comment.