File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -205,9 +205,13 @@ def load(cls, eps):
205205 grouped = itertools .groupby (ordered , by_group )
206206 return cls ((group , EntryPoints (eps )) for group , eps in grouped )
207207
208+ @property
209+ def _all (self ):
210+ return EntryPoints (itertools .chain .from_iterable (self .values ()))
211+
208212 @property
209213 def groups (self ):
210- return set ( self .keys ())
214+ return self ._all . groups
211215
212216 @property
213217 def names (self ):
@@ -216,16 +220,12 @@ def names(self):
216220 >>> SelectableGroups().names
217221 set()
218222 """
219- return set (ep .name for ep in self ._all )
220-
221- @property
222- def _all (self ):
223- return itertools .chain .from_iterable (self .values ())
223+ return self ._all .names
224224
225225 def select (self , ** params ):
226226 if not params :
227227 return self
228- return EntryPoints ( self ._all ) .select (** params )
228+ return self ._all .select (** params )
229229
230230
231231class LegacyGroupedEntryPoints (EntryPoints ): # pragma: nocover
You can’t perform that action at this time.
0 commit comments