Skip to content

Commit ae344e9

Browse files
committed
Remove ManualPluginLoader
1 parent 4f2241a commit ae344e9

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

variantlib/plugins/loader.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
from variantlib.plugins.py_envs import INSTALLER_PYTHON_ENVS
2828
from variantlib.plugins.py_envs import AutoPythonEnv
2929
from variantlib.plugins.py_envs import BasePythonEnv
30-
from variantlib.plugins.py_envs import ExternalNonIsolatedPythonEnv
3130
from variantlib.validators.base import validate_matches_re
3231

3332
if TYPE_CHECKING:
@@ -472,25 +471,3 @@ def _load_all_plugins(self) -> None:
472471
)
473472

474473
self._load_all_plugins_from_tuple(plugin_apis=self._plugin_apis)
475-
476-
477-
class ManualPluginLoader(BasePluginLoader):
478-
"""Load and query plugins"""
479-
480-
_python_ctx: ExternalNonIsolatedPythonEnv
481-
482-
def __init__(self) -> None:
483-
self._namespace_map = {}
484-
super().__init__(python_ctx=ExternalNonIsolatedPythonEnv().__enter__())
485-
486-
def __enter__(self) -> Self:
487-
return self
488-
489-
def __exit__(self, *args: object) -> None:
490-
self._namespace_map = {}
491-
492-
def __del__(self) -> None:
493-
self._python_ctx.__exit__()
494-
495-
def _load_all_plugins(self) -> None:
496-
raise NotImplementedError("This Plugin Loader doesn't support this behavior")

0 commit comments

Comments
 (0)