Skip to content

Commit

Permalink
Rename a variable so we can add a type annotation later
Browse files Browse the repository at this point in the history
  • Loading branch information
rwbarton committed Jun 14, 2016
1 parent dda1e98 commit bb09e7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mypy/typeanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def visit_unbound_type(self, t: UnboundType) -> Type:
if len(t.args) == 2 and isinstance(t.args[1], EllipsisType):
# Tuple[T, ...] (uniform, variable-length tuple)
node = self.lookup_fqn_func('builtins.tuple')
info = cast(TypeInfo, node.node)
return Instance(info, [t.args[0].accept(self)], t.line)
tuple_info = cast(TypeInfo, node.node)
return Instance(tuple_info, [t.args[0].accept(self)], t.line)
return self.tuple_type(self.anal_array(t.args))
elif fullname == 'typing.Union':
items = self.anal_array(t.args)
Expand Down Expand Up @@ -152,7 +152,7 @@ def visit_unbound_type(self, t: UnboundType) -> Type:
return AnyType()
self.fail('Invalid type "{}"'.format(name), t)
return t
info = sym.node
info = sym.node # type: TypeInfo
if len(t.args) > 0 and info.fullname() == 'builtins.tuple':
return TupleType(self.anal_array(t.args),
Instance(info, [AnyType()], t.line),
Expand Down

0 comments on commit bb09e7a

Please sign in to comment.