methods_differ_from_baseclass

glotaran.plugin_system.base_registry.methods_differ_from_baseclass(method_names: str | Sequence[str], plugin: GenericPluginInstance | type[GenericPluginInstance], base_class: type[GenericPluginInstance]) list[bool][source]

Check if a plugins methods implementation differ from its baseclass.

Based on the assumption that base_class didn’t implement the methods (e.g. DataIoInterface or ProjectIoInterface), this can be used to to create a ‘supported methods’ list.

Parameters
  • method_names (str | list[str]) – Name|s of the method|s

  • plugin (GenericPluginInstance | type[GenericPluginInstance]) – Plugin class or instance.

  • base_class (type[GenericPluginInstance]) – Base class the plugin inherited from.

Returns

List containing whether or not a plugins method differs from the baseclasses.

Return type

list[bool]