1.1 --- a/micropython/data.py Sat Jun 09 18:28:02 2012 +0200
1.2 +++ b/micropython/data.py Sat Jun 09 18:28:57 2012 +0200
1.3 @@ -477,10 +477,9 @@
1.4 for name, combined_usage in usage.items():
1.5 if combined_usage is not None:
1.6 objtypes = get_object_types_for_usage(combined_usage, objtable, name, self.full_name(), True)
1.7 - if not objtypes:
1.8 - objtypes = get_object_types_for_usage(combined_usage, objtable, name, self.full_name(), False)
1.9 - if isinstance(self, Function) and self.is_method() and name == "self":
1.10 - objtypes = filter_using_self(objtypes, self.parent)
1.11 + if objtypes:
1.12 + if isinstance(self, Function) and self.is_method() and name == "self":
1.13 + objtypes = filter_using_self(objtypes, self.parent)
1.14 attrtypes[name] = objtypes
1.15 return attrtypes
1.16