Skip to content

Commit

Permalink
Change type to Node
Browse files Browse the repository at this point in the history
  • Loading branch information
yczhu committed Oct 6, 2014
1 parent b5d2bac commit 134ae8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ def visit_raise_stmt(self, s: RaiseStmt) -> Type:
if s.from_expr:
self.type_check_raise(s.from_expr, s)

def type_check_raise(self, e: NameExpr, s: RaiseStmt) -> None:
def type_check_raise(self, e: Node, s: RaiseStmt) -> None:
typ = self.accept(e)
if isinstance(typ, FunctionLike):
if typ.is_type_obj():
Expand Down

0 comments on commit 134ae8c

Please sign in to comment.