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