We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8488ad commit 914ec70Copy full SHA for 914ec70
src/warnet/plugin.py
@@ -5,8 +5,6 @@
5
import os
6
import sys
7
import tempfile
8
-from dataclasses import dataclass
9
-from enum import Enum, auto
10
from importlib.metadata import PackageNotFoundError, version
11
from pathlib import Path
12
from types import ModuleType
@@ -26,25 +24,13 @@
26
24
)
27
25
28
# TODO Add inquirer test
29
-# TODO get rid of piping
30
# TODO iron out input (and test it)
31
32
33
class PluginError(Exception):
34
pass
35
36
37
-class ParamStrategy(Enum):
38
- POSITIONAL = auto()
39
- NAMED = auto()
40
-
41
42
-@dataclass
43
-class Params:
44
- params: list | dict
45
- type: ParamStrategy
46
47
48
hook_registry: set[Callable[..., Any]] = set()
49
imported_modules: dict[str, ModuleType] = {}
50
0 commit comments