Skip to content

Commit 3340653

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

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

mypy/checkexpr.py

Lines changed: 2 additions & 4 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,7 +2358,7 @@ 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 there is an error, report it
2361+
we scan left to right to find which argument skipped. If there is an error, report it
23642362
and return True, or return False to fall back to normal checking.
23652363
"""
23662364
if not all(k == ARG_POS for k in callee.arg_kinds):

0 commit comments

Comments
 (0)