Skip to content

Commit

Permalink
Prepare for GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks committed Mar 26, 2022
1 parent 0091762 commit 81994f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mypy/expandtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def visit_param_spec(self, t: ParamSpecType) -> Type:
return Parameters(t.prefix.arg_types + repl.arg_types,
t.prefix.arg_kinds + repl.arg_kinds,
t.prefix.arg_names + repl.arg_names,
variables=t.prefix.variables + repl.variables)
variables=[*t.prefix.variables, *repl.variables])
else:
# TODO: should this branch be removed? better not to fail silently
return repl
Expand Down
2 changes: 1 addition & 1 deletion mypy/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2676,7 +2676,7 @@ def add_type_vars(self) -> None:
for vd in self.defn.type_vars:
if isinstance(vd, mypy.types.ParamSpecType):
self.has_param_spec_type = True
self.type_vars.append(vd.fullname)
self.type_vars.append(vd.name)

@property
def name(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion mypy/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ def deserialize(cls, data: JsonDict) -> 'Parameters':
[deserialize_type(t) for t in data['arg_types']],
[ArgKind(x) for x in data['arg_kinds']],
data['arg_names'],
variables=[deserialize_type(tv) for tv in data['variables']],
variables=[cast(TypeVarLikeType, deserialize_type(v)) for v in data['variables']],
)

def __hash__(self) -> int:
Expand Down

0 comments on commit 81994f1

Please sign in to comment.