Skip to content

Commit

Permalink
Merge pull request #1729 from vemikhaylov/fix-docstring-typing
Browse files Browse the repository at this point in the history
Remove :rtype: declarations
  • Loading branch information
lafrech authored Feb 1, 2021
2 parents 4ee6510 + a157be7 commit 3247666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,4 @@ Contributors (chronological)
- Nadège Michel `@nadege <https://github.com/nadege>`_
- Tamara `@infinityxxx <https://github.com/infinityxxx>`_
- Stephen Rosen `@sirosen <https://github.com/sirosen>`_
- Vladimir Mikhaylov `@vemikhaylov <https://github.com/vemikhaylov>`_
4 changes: 1 addition & 3 deletions src/marshmallow/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,7 @@ def dump(self, obj: typing.Any, *, many: typing.Optional[bool] = None):
:param obj: The object to serialize.
:param many: Whether to serialize `obj` as a collection. If `None`, the value
for `self.many` is used.
:return: A dict of serialized data
:rtype: dict
:return: Serialized data
.. versionadded:: 1.0.0
.. versionchanged:: 3.0.0b7
Expand Down Expand Up @@ -574,7 +573,6 @@ def dumps(
:param many: Whether to serialize `obj` as a collection. If `None`, the value
for `self.many` is used.
:return: A ``json`` string
:rtype: str
.. versionadded:: 1.0.0
.. versionchanged:: 3.0.0b7
Expand Down

0 comments on commit 3247666

Please sign in to comment.