Skip to content

Commit dacc60f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 08267d5 commit dacc60f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mypy/semanal.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6178,7 +6178,10 @@ def visit_await_expr(self, expr: AwaitExpr) -> None:
61786178
# This is not a blocker, because some enviroments (like ipython)
61796179
# support top level awaits.
61806180
self.fail('"await" outside function', expr, serious=True, code=codes.TOP_LEVEL_AWAIT)
6181-
elif not self.function_stack[-1].is_coroutine and self.scope_stack[-1] != SCOPE_COMPREHENSION:
6181+
elif (
6182+
not self.function_stack[-1].is_coroutine
6183+
and self.scope_stack[-1] != SCOPE_COMPREHENSION
6184+
):
61826185
self.fail(
61836186
'"await" outside coroutine ("async def")',
61846187
expr,

0 commit comments

Comments
 (0)