Skip to content

Commit 8574ee2

Browse files
fix mypy errs
1 parent 0ef2871 commit 8574ee2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypy/fastparse.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1634,9 +1634,11 @@ def visit_Call(self, n: Call) -> CallExpr:
16341634
arg_types = self.translate_expr_list(
16351635
[a.value if isinstance(a, Starred) else a for a in args] + [k.value for k in keywords]
16361636
)
1637-
arg_kinds = [ARG_STAR if type(a) is Starred else ARG_POS for a in args] + [
1637+
arg_kinds = ArgKinds(
1638+
[ARG_STAR if type(a) is Starred else ARG_POS for a in args] + [
16381639
ARG_STAR2 if arg is None else ARG_NAMED for arg in keyword_names
16391640
]
1641+
)
16401642
e = CallExpr(
16411643
self.visit(n.func),
16421644
arg_types,

0 commit comments

Comments
 (0)