Skip to content

Commit 63bad66

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 43fc65a commit 63bad66

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
@@ -6186,7 +6186,10 @@ def visit_await_expr(self, expr: AwaitExpr) -> None:
61866186
# This is not a blocker, because some enviroments (like ipython)
61876187
# support top level awaits.
61886188
self.fail('"await" outside function', expr, serious=True, code=codes.TOP_LEVEL_AWAIT)
6189-
elif not self.function_stack[-1].is_coroutine and self.scope_stack[-1] != SCOPE_COMPREHENSION:
6189+
elif (
6190+
not self.function_stack[-1].is_coroutine
6191+
and self.scope_stack[-1] != SCOPE_COMPREHENSION
6192+
):
61906193
self.fail(
61916194
message_registry.AWAIT_WITH_OUTSIDE_COROUTINE,
61926195
expr,

0 commit comments

Comments
 (0)