Skip to content

Commit

Permalink
Fix Function field docstring about context
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrech committed Jan 1, 2025
1 parent a210025 commit 0c3092e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/marshmallow/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -1900,13 +1900,13 @@ class Function(Field):
:param serialize: A callable from which to retrieve the value.
The function must take a single argument ``obj`` which is the object
to be serialized. It can also optionally take a ``context`` argument,
which is a dictionary of context variables passed to the serializer.
which is the value of the current context returned by Context.get().
If no callable is provided then the ```load_only``` flag will be set
to True.
:param deserialize: A callable from which to retrieve the value.
The function must take a single argument ``value`` which is the value
to be deserialized. It can also optionally take a ``context`` argument,
which is a dictionary of context variables passed to the deserializer.
which is the value of the current context returned by Context.get().
If no callable is provided then ```value``` will be passed through
unchanged.
Expand Down

0 comments on commit 0c3092e

Please sign in to comment.