Skip to content

Commit 48148ac

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 95c5730 commit 48148ac

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mypy/semanal.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6105,7 +6105,12 @@ def visit_list_comprehension(self, expr: ListComprehension) -> None:
61056105
def visit_set_comprehension(self, expr: SetComprehension) -> None:
61066106
if any(expr.generator.is_async):
61076107
if not self.is_func_scope() or not self.function_stack[-1].is_coroutine:
6108-
self.fail(message_registry.ASYNC_FOR_OUTSIDE_COROUTINE, expr, code=codes.SYNTAX, serious=True)
6108+
self.fail(
6109+
message_registry.ASYNC_FOR_OUTSIDE_COROUTINE,
6110+
expr,
6111+
code=codes.SYNTAX,
6112+
serious=True,
6113+
)
61096114

61106115
self._check_await_outside_coroutine(expr)
61116116

0 commit comments

Comments
 (0)