Skip to content

Commit

Permalink
Fix type error in Jukka's code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Guido van Rossum committed Feb 17, 2016
1 parent bbd0406 commit eefa6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/checkmember.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def analyze_class_attribute_access(itype: Instance,
t = node.type
if t:
if isinstance(t, PartialType):
return handle_partial_attribute_type(t, is_lvalue, msg, node)
return handle_partial_attribute_type(t, is_lvalue, msg, node.node)
is_classmethod = is_decorated and cast(Decorator, node.node).func.is_class
return add_class_tvars(t, itype.type, is_classmethod, builtin_type)
elif isinstance(node.node, Var):
Expand Down

0 comments on commit eefa6bc

Please sign in to comment.