def get_filters(self, origin_scope=None): yield MergedFilter( ParserTreeFilter(parent_context=self.as_context(), origin_scope=origin_scope), GlobalNameFilter(self.as_context(), self.tree_node), ) yield DictFilter(self.sub_modules_dict()) yield DictFilter(self._module_attributes_dict()) yield from self.iter_star_filters()
def get_filters(self, until_position=None, origin_scope=None): filters = self._value.get_filters(origin_scope) # Skip the first filter and replace it. next(filters) yield MergedFilter( ParserTreeFilter(parent_context=self, until_position=until_position, origin_scope=origin_scope), GlobalNameFilter(self, self.tree_node), ) for f in filters: # Python 2... yield f
def get_global_filter(self): return GlobalNameFilter(self)
def get_global_filter(self): return GlobalNameFilter(self, self.tree_node)