File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 7
7
8
8
import importlib
9
9
from easybuild .tools .config import build_option
10
- from typing import Callable , List , Set
10
+ from typing import Callable , List
11
11
12
12
from easybuild .base import fancylogger
13
13
from easybuild .tools .build_log import EasyBuildError
14
14
15
15
try :
16
- from importlib .metadata import entry_points , EntryPoint
16
+ from importlib .metadata import entry_points
17
17
except ModuleNotFoundError :
18
18
HAVE_ENTRY_POINTS = False
19
19
else :
23
23
_log = fancylogger .getLogger ('entrypoints' , fname = False )
24
24
25
25
26
- def get_group_entrypoints (group : str ) -> Set [ EntryPoint ] :
26
+ def get_group_entrypoints (group : str ):
27
27
"""Get all entrypoints for a group"""
28
28
# Default True needed to work with commands like --list-toolchains that do not initialize the BuildOptions
29
29
if not build_option ('use_entrypoints' , default = True ):
@@ -227,7 +227,7 @@ def decorator(cls):
227
227
return decorator
228
228
229
229
230
- def get_toolchain_entrypoints () -> Set [ EntryPoint ] :
230
+ def get_toolchain_entrypoints ():
231
231
"""Get all toolchain entrypoints."""
232
232
toolchains = []
233
233
for ep in get_group_entrypoints (TOOLCHAIN_ENTRYPOINT ):
You can’t perform that action at this time.
0 commit comments