Skip to content

Commit 3a36cbd

Browse files
committed
Deprecate dict usage of SelectableGroups.
1 parent cc40cd5 commit 3a36cbd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

importlib_metadata/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def values(self):
252252
return super().values()
253253

254254

255-
class SelectableGroups(dict):
255+
class SelectableGroups(Deprecated, dict):
256256
"""
257257
A backward- and forward-compatible result from
258258
entry_points that fully implements the dict interface.
@@ -270,7 +270,8 @@ def _all(self):
270270
"""
271271
Reconstruct a list of all entrypoints from the groups.
272272
"""
273-
return EntryPoints(itertools.chain.from_iterable(self.values()))
273+
groups = super(Deprecated, self).values()
274+
return EntryPoints(itertools.chain.from_iterable(groups))
274275

275276
@property
276277
def groups(self):

0 commit comments

Comments
 (0)