(self, groups: List[str])
Loads filters from the entry-point groups specified in groups
Loads filters from the entry-point groups specified in groups
Loads filters from the entry - point groups specified in groups
def _load_filters(self, groups: List[str]) -> None:
        """
        Loads filters from the entry-point groups specified in groups
        """
        for group in groups:
            plugins = set()
            for entry_point in pkg_resources.iter_entry_points(group=group):
                plugin_class = entry_point.load()
                plugin_instance = plugin_class()
                if (
                    "all" in self.enabled_plugins
                    or plugin_instance.name in self.enabled_plugins
                    or plugin_instance.deprecated_name in self.enabled_plugins
                ):
                    plugins.add(plugin_instance)

            self.loaded_filter_plugins[group] = list(plugins)
def _load_filters ( self , groups : List [ str ] ) -> None : for group in groups : plugins = set ( ) for entry_point in pkg_resources . iter_entry_points ( group = group ) : plugin_class = entry_point . load ( ) plugin_instance = plugin_class ( ) if ( "all" in self . enabled_plugins or plugin_instance . name in self . enabled_plugins or plugin_instance . deprecated_name in self . enabled_plugins ) : plugins . add ( plugin_instance ) self . loaded_filter_plugins [ group ] = list ( plugins )