Skip to content

Commit

Permalink
Fix mypy error in new code
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Jan 1, 2021
1 parent 8264f8d commit 0e1776a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -4003,6 +4003,8 @@ def find_isinstance_check_helper(self, node: Expression) -> Tuple[TypeMap, TypeM
vartype = type_map[expr]
return self.conditional_callable_type_map(expr, vartype)
else:
# if isinstance(node.callee, RefExpr) and node.callee.node is None:
# node.callee.node = self.expr_checker.accept(node.callee)
if (isinstance(node.callee, RefExpr)
and isinstance(node.callee.node, SYMBOL_FUNCBASE_TYPES)
and isinstance(node.callee.node.type, CallableType)
Expand Down

0 comments on commit 0e1776a

Please sign in to comment.