Skip to content

Commit 8697344

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

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

mypy/checkexpr.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,9 +1798,7 @@ def check_callable_call(
17981798

17991799
arg_types = self.infer_arg_types_in_context(callee, args, arg_kinds, formal_to_actual)
18001800

1801-
if not self._detect_missing_positional_arg(
1802-
callee, arg_types, arg_kinds, args, context
1803-
):
1801+
if not self._detect_missing_positional_arg(callee, arg_types, arg_kinds, args, context):
18041802
self.check_argument_count(
18051803
callee,
18061804
arg_types,
@@ -2360,8 +2358,8 @@ def _detect_missing_positional_arg(
23602358
"""Try to identify a single missing positional argument using type alignment.
23612359
23622360
If the caller and callee are just positional arguments and exactly one arg is missing,
2363-
we scan left to right to find which argument skipped. If only the last argument is missing,
2364-
we return False since it's already handled in a desired manner. If there is an error,
2361+
we scan left to right to find which argument skipped. If only the last argument is missing,
2362+
we return False since it's already handled in a desired manner. If there is an error,
23652363
report it and return True, or return False to fall back to normal checking.
23662364
"""
23672365
if not all(k == ARG_POS for k in callee.arg_kinds):

0 commit comments

Comments
 (0)