Skip to content

Commit

Permalink
Fix hanging indent lint error.
Browse files Browse the repository at this point in the history
  • Loading branch information
esoma committed Oct 10, 2020
1 parent 947a29f commit c6aedea
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions mypy/argmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,12 @@ def map_actuals_to_formals(actual_kinds: List[int],
#
# TODO: If there are also tuple varargs, we might be missing some potential
# matches if the tuple was short enough to not match everything.
unmatched_formals = [
fi for fi in range(nformals)
if (formal_names[fi]
and (not formal_to_actual[fi]
or actual_kinds[formal_to_actual[fi][0]] == nodes.ARG_STAR)
and formal_kinds[fi] != nodes.ARG_STAR)
or formal_kinds[fi] == nodes.ARG_STAR2
]
unmatched_formals = [fi for fi in range(nformals)
if (formal_names[fi]
and (not formal_to_actual[fi]
or actual_kinds[formal_to_actual[fi][0]] == nodes.ARG_STAR)
and formal_kinds[fi] != nodes.ARG_STAR)
or formal_kinds[fi] == nodes.ARG_STAR2]
for ai in ambiguous_actual_kwargs:
for fi in unmatched_formals:
formal_to_actual[fi].append(ai)
Expand Down

0 comments on commit c6aedea

Please sign in to comment.