Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 21, 2023
1 parent 4c3d5f4 commit 4ff12c3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mypy/fastparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,13 @@ def translate_stmt_list(

stack = self.class_and_function_stack
# Fast case for stripping function bodies
if can_strip and self.strip_function_bodies and len(stack) == 1 and stack[0] == "F" and not is_coroutine:
if (
can_strip
and self.strip_function_bodies
and len(stack) == 1
and stack[0] == "F"
and not is_coroutine
):
return []

res: list[Statement] = []
Expand Down

0 comments on commit 4ff12c3

Please sign in to comment.