Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Mar 11, 2024
1 parent 5af0ff8 commit 0b8e240
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyanalyze/name_check_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2049,7 +2049,9 @@ def visit_FunctionDef(self, node: FunctionDefNode) -> Value:
):
prepared = prepare_type(result.return_value)
if should_suggest_type(prepared):
detail, metadata = display_suggested_type(prepared, self.scopes, node)
detail, metadata = display_suggested_type(
prepared, self.scopes, node
)
self._show_error_if_checking(
node,
error_code=ErrorCode.suggested_return_type,
Expand Down

0 comments on commit 0b8e240

Please sign in to comment.