Skip to content

Commit 4597886

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pylint/checkers/typecheck.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2197,7 +2197,9 @@ def _check_await_outside_coroutine(self, node: nodes.Await) -> None:
21972197
while not isinstance(node_scope, nodes.Module):
21982198
if isinstance(node_scope, nodes.AsyncFunctionDef):
21992199
return
2200-
if isinstance(node_scope, nodes.FunctionDef) or isinstance(node_scope, nodes.Lambda):
2200+
if isinstance(node_scope, nodes.FunctionDef) or isinstance(
2201+
node_scope, nodes.Lambda
2202+
):
22012203
break
22022204
node_scope = node_scope.parent.scope()
22032205
self.add_message("await-outside-async", node=node)

0 commit comments

Comments
 (0)