You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not very high priority, but on the other hand this should be easy to implement. If you want to make a PR, then please take a look at checkmember.analyze_class_attribute_access (you can see how to make special treatment of __getattr__ etc. in checkmember.analyze_member_var_access)
It's unrelated to member access in metaclasses. mypy simply does not understand add_metaclass. It works fine with standard metaclasses, and on the other hand
Activity
ilevkivskyi commentedon Aug 18, 2017
This is not very high priority, but on the other hand this should be easy to implement. If you want to make a PR, then please take a look at
checkmember.analyze_class_attribute_access(you can see how to make special treatment of__getattr__etc. incheckmember.analyze_member_var_access)elazarg commentedon Aug 18, 2017
It's unrelated to member access in metaclasses. mypy simply does not understand
add_metaclass. It works fine with standard metaclasses, and on the other handfails too.
elazarg commentedon Aug 18, 2017
So this is duplicate of #3365.
ilevkivskyi commentedon Aug 18, 2017
OK, then I am closing this as a duplicate.
elazarg commentedon Aug 18, 2017
@yuyangguo42 you may want to try #3842.