Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
JukkaL committed Oct 25, 2014
1 parent c1a85c8 commit 8131d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mypy/semanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1370,9 +1370,9 @@ def lookup_qualified(self, name: str, ctx: Context) -> SymbolTableNode:
if n:
for i in range(1, len(parts)):
if isinstance(n.node, TypeInfo):
n = (cast(TypeInfo, n.node)).get(parts[i])
n = cast(TypeInfo, n.node).get(parts[i])
elif isinstance(n.node, MypyFile):
n = (cast(MypyFile, n.node)).names.get(parts[i], None)
n = cast(MypyFile, n.node).names.get(parts[i], None)
if not n:
self.name_not_defined(name, ctx)
break
Expand Down

0 comments on commit 8131d37

Please sign in to comment.