8000
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 342a94b commit 00f10d9Copy full SHA for 00f10d9
importlib_metadata/__init__.py
@@ -157,8 +157,9 @@ def __reduce__(self):
157
158
class EntryPoints(tuple):
159
"""
160
- A collection of EntryPoint objects, retrievable by name.
+ An immutable collection of EntryPoint objects, retrievable by name.
161
162
+ __slots__ = ()
163
164
def __getitem__(self, name) -> EntryPoint:
165
try:
@@ -173,8 +174,9 @@ def names(self):
173
174
175
class GroupedEntryPoints(tuple):
176
- A collection of EntryPoint objects, retrievable by group.
177
+ An immutable collection of EntryPoint objects, retrievable by group.
178
179
180
181
def __getitem__(self, group) -> EntryPoints:
182
return EntryPoints(ep for ep in self if ep.group == group)
0 commit comments