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 eae6a75 commit f179e28Copy full SHA for f179e28
importlib_metadata/__init__.py
@@ -171,6 +171,14 @@ class EntryPoint:
171
Traceback (most recent call last):
172
...
173
ValueError: ('Invalid object reference...invalid-name...
174
+
175
+ The same thing happens on construction.
176
177
+ >>> EntryPoint(name=None, group=None, value='invalid-name')
178
+ Traceback (most recent call last):
179
+ ...
180
+ ValueError: ('Invalid object reference...invalid-name...
181
182
"""
183
184
pattern = re.compile(
@@ -202,6 +210,7 @@ class EntryPoint:
202
210
203
211
def __init__(self, name: str, value: str, group: str) -> None:
204
212
vars(self).update(name=name, value=value, group=group)
213
+ self.module
205
214
206
215
def load(self) -> Any:
207
216
"""Load the entry point from its definition. If only a module
0 commit comments