Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions doc/data/messages/m/missing-return-type-doc/bad.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
def integer_sum(a: int, b: int): # [missing-return-type-doc]
"""Returns sum of two integers
:param a: first integer
:param b: second integer
:return: sum of parameters a and b
"""
return a + b
1 change: 1 addition & 0 deletions doc/data/messages/m/missing-return-type-doc/details.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This message is raised only when parameter ``accept-no-return-doc`` is set to ``no``.
7 changes: 7 additions & 0 deletions doc/data/messages/m/missing-return-type-doc/good.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
def integer_sum(a: int, b: int) -> int:
"""Returns sum of two integers
:param a: first integer
:param b: second integer
:return: sum of parameters a and b
"""
return a + b
5 changes: 5 additions & 0 deletions doc/data/messages/m/missing-return-type-doc/pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[master]
load-plugins=pylint.extensions.docparams

[Parameter_documentation]
accept-no-return-doc=no