@property<EOL><INDENT>def method_returns_something(self):<DEDENT>
def get_returns_not_on_nested_functions(node):<EOL><INDENT>returns = [node] if isinstance(node, ast.Return) else []<EOL>for child in ast.iter_child_nodes(node):<EOL><INDENT>if not isinstance(child, ast.FunctionDef):<EOL><INDENT>child_returns = get_returns_not_on_nested_functions(child)<EOL>returns.extend(child_returns)<EOL><DEDENT><DEDENT>return returns<EOL><DEDENT>tree = ast.parse(self.method_source).body<EOL>if tree:<EOL><INDENT>returns = get_returns_not_on_nested_functions(tree[<NUM_LIT:0>])<EOL>return_values = [r.value for r in returns]<EOL>for i, v in enumerate(return_values):<EOL><INDENT>if isinstance(v, ast.NameConstant) and v.value is None:<EOL><INDENT>return_values[i] = None<EOL><DEDENT><DEDENT>return any(return_values)<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
Check if the docstrings method can return something.

Bare returns, returns valued None and returns from nested functions are
disconsidered.

Returns
-------
bool
    Whether the docstrings method can return something.