[fix] rerank plugin: adapt to #4183

This commit is contained in:
GenericMale
2025-01-29 18:17:46 +01:00
parent 7fa0fbd93d
commit ab83de9332
4 changed files with 96 additions and 72 deletions

View File

@@ -68,6 +68,9 @@ class PluginInfo:
keywords: list[str] = field(default_factory=list)
"""See :py:obj:`Plugin.keywords`"""
is_allowed: bool = True
"""Switch to disable plugin completely, without the user preference."""
class Plugin(abc.ABC):
"""Abstract base class of all Plugins."""