1.1 --- a/micropython/data.py Tue Jun 05 01:25:35 2012 +0200
1.2 +++ b/micropython/data.py Tue Jun 05 01:29:39 2012 +0200
1.3 @@ -477,7 +477,9 @@
1.4 attrtypes = {}
1.5 for name, combined_usage in usage.items():
1.6 if combined_usage is not None:
1.7 - objtypes = 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(), True)
1.9 + if not objtypes:
1.10 + objtypes = get_object_types_for_usage(combined_usage, objtable, name, self.full_name(), False)
1.11 if isinstance(self, Function) and self.is_method() and name == "self":
1.12 objtypes = filter_using_self(objtypes, self.parent)
1.13 attrtypes[name] = objtypes