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 71c8d4d commit f3701d7Copy full SHA for f3701d7
pylint/extensions/_check_docs_utils.py
@@ -83,10 +83,9 @@ def returns_something(return_node: nodes.Return) -> bool:
83
False otherwise.
84
"""
85
returns = return_node.value
86
-
87
- if returns is None or (isinstance(returns, nodes.Const) and returns.value is None):
88
- return False
89
- return True
+ return not (
+ returns is None or (isinstance(returns, nodes.Const) and returns.value is None)
+ )
90
91
92
def _get_raise_target(node: nodes.NodeNG) -> nodes.NodeNG | UninferableBase | None:
0 commit comments