We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c034a78 commit ba8058aCopy full SHA for ba8058a
src/marshmallow/validate.py
@@ -623,8 +623,7 @@ def options(
623
:param valuegetter: Can be a callable or a string. In the former case, it must
624
be a one-argument callable which returns the value of a
625
choice. In the latter case, the string specifies the name
626
- of an attribute of the choice objects. Defaults to `str()`
627
- or `str()`.
+ of an attribute of the choice objects. Defaults to `str()`.
628
"""
629
valuegetter = valuegetter if callable(valuegetter) else attrgetter(valuegetter)
630
pairs = zip_longest(self.choices, self.labels, fillvalue="")
0 commit comments