mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2026-06-11 07:28:45 -04:00
Plugin manager: set reasonable default when called without params
This commit is contained in:
@@ -101,11 +101,11 @@ class OcrmypdfPluginManager(pluggy.PluginManager):
|
||||
|
||||
|
||||
def get_plugin_manager(
|
||||
plugins: list[str | Path], builtins=True
|
||||
plugins: list[str | Path] | None = None, builtins=True
|
||||
) -> OcrmypdfPluginManager:
|
||||
return OcrmypdfPluginManager(
|
||||
project_name='ocrmypdf',
|
||||
plugins=plugins,
|
||||
plugins=plugins if plugins is not None else [],
|
||||
builtins=builtins,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user