From 4597886b061fbfce33255c5945bc12e742906dfc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 19 May 2024 12:23:53 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pylint/checkers/typecheck.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py index 49abc4a3220..dd1dfd4927b 100644 --- a/pylint/checkers/typecheck.py +++ b/pylint/checkers/typecheck.py @@ -2197,7 +2197,9 @@ def _check_await_outside_coroutine(self, node: nodes.Await) -> None: while not isinstance(node_scope, nodes.Module): if isinstance(node_scope, nodes.AsyncFunctionDef): return - if isinstance(node_scope, nodes.FunctionDef) or isinstance(node_scope, nodes.Lambda): + if isinstance(node_scope, nodes.FunctionDef) or isinstance( + node_scope, nodes.Lambda + ): break node_scope = node_scope.parent.scope() self.add_message("await-outside-async", node=node)