Skip to content

Commit 750f088

Browse files
committed
Convert Converter docstring to Napoleon
1 parent f6cbf61 commit 750f088

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/attr/_make.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3075,11 +3075,16 @@ class Converter:
30753075
Allows for the wrapped converter to take additional arguments. The
30763076
arguments are passed in the order they are documented.
30773077
3078-
:param Callable converter: A callable that converts a value.
3079-
:param bool takes_self: Pass the partially initialized instance that is
3080-
being initialized as a positional argument. (default: `False`)
3081-
:param bool takes_field: Pass the field definition (an `Attribute`) into
3082-
the converter as a positional argument. (default: `False`)
3078+
Args:
3079+
converter (Callable): A callable that converts the passed value.
3080+
3081+
takes_self (bool):
3082+
Pass the partially initialized instance that is being initialized
3083+
as a positional argument. (default: `False`)
3084+
3085+
takes_field (bool):
3086+
Pass the field definition (an `Attribute`) into the converter as a
3087+
positional argument. (default: `False`)
30833088
30843089
.. versionadded:: 24.1.0
30853090
"""

0 commit comments

Comments
 (0)