Merge branch 'master' into version-info

This commit is contained in:
Hynek Schlawack 2019-10-01 15:49:21 +02:00 committed by GitHub
commit c1681f7b49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -888,7 +888,8 @@ def attrs(
``attr.ib(default=42)``. Passing an instance of `Factory` also ``attr.ib(default=42)``. Passing an instance of `Factory` also
works as expected. 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/ .. _`PEP 526`: https://www.python.org/dev/peps/pep-0526/
:param bool kw_only: Make all attributes keyword-only (Python 3+) :param bool kw_only: Make all attributes keyword-only (Python 3+)