File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2828import inspect
2929import pkgutil
3030import types
31- from typing import Optional , Sequence
31+ from typing import Optional
3232
3333import nodescraper .connection as internal_connections
3434import nodescraper .plugins as internal_plugins
@@ -123,12 +123,11 @@ def load_plugins_from_entry_points() -> dict[str, type]:
123123
124124 try :
125125 # Python 3.10+ supports group parameter
126- eps : Sequence [importlib .metadata .EntryPoint ]
127126 try :
128127 eps = importlib .metadata .entry_points (group = "nodescraper.plugins" ) # type: ignore[call-arg]
129128 except TypeError :
130129 # Python 3.9 - entry_points() returns dict-like object
131- all_eps = importlib .metadata .entry_points ()
130+ all_eps = importlib .metadata .entry_points () # type: ignore[assignment]
132131 eps = all_eps .get ("nodescraper.plugins" , []) # type: ignore[assignment, attr-defined]
133132
134133 for entry_point in eps :
You can’t perform that action at this time.
0 commit comments