Skip to content

Commit 7a59ae7

Browse files
committed
Pre-commit fixes
1 parent 5f9edfb commit 7a59ae7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/attr/_make.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ def attrib(
222222
:type on_setattr: `callable`, or a list of callables, or `None`, or
223223
`attrs.setters.NO_OP`
224224
:param Optional[str] alias: Override this attribute's parameter name in the
225-
generated ``__init__`` method. If unspecified, default to ``name`` stripped
226-
of leading underscores. See `private_attributes`.
225+
generated ``__init__`` method. If left `None`, default to ``name``
226+
stripped of leading underscores. See `private_attributes`.
227227
228228
.. versionadded:: 15.2.0 *convert*
229229
.. versionadded:: 16.3.0 *metadata*

tests/test_make.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1804,8 +1804,9 @@ class EvolveCase:
18041804

18051805
org = EvolveCase(1, 2, 3)
18061806

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

18111812
# evolve uses the alias to match __init__ signature

0 commit comments

Comments
 (0)