From dbcfa1c8f84f01f23addca25fb588cba76913d0f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 5 Apr 2024 07:54:51 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mypy/checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypy/checker.py b/mypy/checker.py index 0dfe183f55d1..3cc331c9bb26 100644 --- a/mypy/checker.py +++ b/mypy/checker.py @@ -7571,7 +7571,7 @@ def _get_instance_path_from_current_to_proposed( if pos1 < prefix: proposed_args[pos2] = current.args[pos1] elif pos1 == prefix: - proposed_args[pos2] = current.args[prefix:len(current.args) - suffix] + proposed_args[pos2] = current.args[prefix : len(current.args) - suffix] else: middle = len(current.args) - prefix - suffix proposed_args[pos2] = current.args[pos1 + middle - 1]