diff --git a/mypy/fastparse.py b/mypy/fastparse.py index e208e4d0b7d9..7e2ba7b712b2 100644 --- a/mypy/fastparse.py +++ b/mypy/fastparse.py @@ -1099,7 +1099,7 @@ def make_argument( if argument_elide_name(arg.arg): pos_only = True - argument = Argument(Var(arg.arg), arg_type, self.visit(default), kind, pos_only) + argument = Argument(Var(arg.arg, arg_type), arg_type, self.visit(default), kind, pos_only) argument.set_line( arg.lineno, arg.col_offset,