1.1 --- a/micropython/data.py Mon Jun 04 01:38:25 2012 +0200
1.2 +++ b/micropython/data.py Mon Jun 04 01:50:55 2012 +0200
1.3 @@ -477,7 +477,10 @@
1.4 attrtypes = {}
1.5 for name, combined_usage in usage.items():
1.6 if combined_usage is not None:
1.7 - attrtypes[name] = get_object_types_for_usage(combined_usage, objtable, name, self.full_name())
1.8 + objtypes = get_object_types_for_usage(combined_usage, objtable, name, self.full_name())
1.9 + if isinstance(self, Function) and self.is_method() and name == "self":
1.10 + objtypes = filter_using_self(objtypes, self.parent)
1.11 + attrtypes[name] = objtypes
1.12 return attrtypes
1.13
1.14 def set_contributors(self, node):