Skip to content

Commit 35e1919

Browse files
committed
Removed EntryPoint typehints
1 parent b76b295 commit 35e1919

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

easybuild/tools/entrypoints.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77

88
import importlib
99
from easybuild.tools.config import build_option
10-
from typing import Callable, List, Set
10+
from typing import Callable, List
1111

1212
from easybuild.base import fancylogger
1313
from easybuild.tools.build_log import EasyBuildError
1414

1515
try:
16-
from importlib.metadata import entry_points, EntryPoint
16+
from importlib.metadata import entry_points
1717
except ModuleNotFoundError:
1818
HAVE_ENTRY_POINTS = False
1919
else:
@@ -23,7 +23,7 @@
2323
_log = fancylogger.getLogger('entrypoints', fname=False)
2424

2525

26-
def get_group_entrypoints(group: str) -> Set[EntryPoint]:
26+
def get_group_entrypoints(group: str):
2727
"""Get all entrypoints for a group"""
2828
# Default True needed to work with commands like --list-toolchains that do not initialize the BuildOptions
2929
if not build_option('use_entrypoints', default=True):
@@ -227,7 +227,7 @@ def decorator(cls):
227227
return decorator
228228

229229

230-
def get_toolchain_entrypoints() -> Set[EntryPoint]:
230+
def get_toolchain_entrypoints():
231231
"""Get all toolchain entrypoints."""
232232
toolchains = []
233233
for ep in get_group_entrypoints(TOOLCHAIN_ENTRYPOINT):

0 commit comments

Comments
 (0)