Skip to content

Commit

Permalink
Move __init__ doc into class doc
Browse files Browse the repository at this point in the history
  • Loading branch information
adamboche committed Jun 8, 2019
1 parent 179d031 commit 16c5625
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/marshmallow_union/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ class Union(marshmallow.fields.Field):
"""Field that accepts any one of multiple fields.
Each argument will be tried until one succeeds.
Args:
fields: The list of candidate fields to try.
reverse_serialize_candidates: Whether to try the candidates in reverse order when
serializing.
"""

def __init__(
Expand All @@ -17,11 +22,6 @@ def __init__(
*args,
**kwargs
):
"""
Args:
fields: The list of candidate fields to try.
reverse_serialize_candidates: Whether to try the candidates in reverse order when serializing.
"""
self._candidate_fields = fields
self._reverse_serialize_candidates = reverse_serialize_candidates
super().__init__(*args, **kwargs)
Expand Down

0 comments on commit 16c5625

Please sign in to comment.