Open elazarg opened 6 years ago
Thanks for opening the issue! It looks like the fix is more complex, since it requires carrying over original_type
from subtypes.py
.
In general bind_self
is buggy and ad-hoc. But when I tried to do it "right" it feels like it means making a class MemberChecker
with all the context carried around by ExpressionChecker
and TypeChecker
.
This pattern is important for enums, and came up in python/typeshed#1755. @ilevkivskyi noted that this is likely due to a bug in
bind_self
(see there).