Skip to content

Commit

Permalink
Pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
asford committed Apr 9, 2022
1 parent 5f9edfb commit 7a59ae7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/attr/_make.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ def attrib(
:type on_setattr: `callable`, or a list of callables, or `None`, or
`attrs.setters.NO_OP`
:param Optional[str] alias: Override this attribute's parameter name in the
generated ``__init__`` method. If unspecified, default to ``name`` stripped
of leading underscores. See `private_attributes`.
generated ``__init__`` method. If left `None`, default to ``name``
stripped of leading underscores. See `private_attributes`.
.. versionadded:: 15.2.0 *convert*
.. versionadded:: 16.3.0 *metadata*
Expand Down
5 changes: 3 additions & 2 deletions tests/test_make.py
Original file line number Diff line number Diff line change
Expand Up @@ -1804,8 +1804,9 @@ class EvolveCase:

org = EvolveCase(1, 2, 3)

# Previous behavior of evolve as broken for double-underscore passthrough,
# and would raise here due to mis-mapping the __dunder__ alias
# Previous behavior of evolve as broken for double-underscore
# passthrough, and would raise here due to mis-mapping the __dunder__
# alias
assert attr.evolve(org) == org

# evolve uses the alias to match __init__ signature
Expand Down

0 comments on commit 7a59ae7

Please sign in to comment.