File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -157,9 +157,11 @@ def __reduce__(self):
157
157
158
158
class EntryPoints (tuple ):
159
159
"""
160
- A collection of EntryPoint objects, retrievable by name.
160
+ An immutable collection of EntryPoint objects, retrievable by name.
161
161
"""
162
162
163
+ __slots__ = ()
164
+
163
165
def __getitem__ (self , name ) -> EntryPoint :
164
166
try :
165
167
return next (ep for ep in self if ep .name == name )
@@ -173,9 +175,11 @@ def names(self):
173
175
174
176
class GroupedEntryPoints (tuple ):
175
177
"""
176
- A collection of EntryPoint objects, retrievable by group.
178
+ An immutable collection of EntryPoint objects, retrievable by group.
177
179
"""
178
180
181
+ __slots__ = ()
182
+
179
183
def __getitem__ (self , group ) -> EntryPoints :
180
184
return EntryPoints (ep for ep in self if ep .group == group )
181
185
You can’t perform that action at this time.
0 commit comments