File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,14 @@ class EntryPoint:
171171 Traceback (most recent call last):
172172 ...
173173 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+
174182 """
175183
176184 pattern = re .compile (
@@ -202,6 +210,7 @@ class EntryPoint:
202210
203211 def __init__ (self , name : str , value : str , group : str ) -> None :
204212 vars (self ).update (name = name , value = value , group = group )
213+ self .module
205214
206215 def load (self ) -> Any :
207216 """Load the entry point from its definition. If only a module
You can’t perform that action at this time.
0 commit comments