Exemple #1
0
 def __dir__(self):
     attrs = super_dir_set(self.__class__)
     if '_lookup' in self.__dict__ and hasattr(self._lookup, 'keys'):
         attrs.update(self._lookup.keys())
     return sorted(attrs)
Exemple #2
0
 def __dir__(self):
     attrs = super_dir_set(self.__class__)
     if 'json' in self.__dict__ and hasattr(self.json, 'keys'):
         attrs.update(self.json.keys())
     return sorted(attrs)