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):
157157
158158class EntryPoints (tuple ):
159159 """
160- A collection of EntryPoint objects, retrievable by name.
160+ An immutable collection of EntryPoint objects, retrievable by name.
161161 """
162162
163+ __slots__ = ()
164+
163165 def __getitem__ (self , name ) -> EntryPoint :
164166 try :
165167 return next (ep for ep in self if ep .name == name )
@@ -173,9 +175,11 @@ def names(self):
173175
174176class GroupedEntryPoints (tuple ):
175177 """
176- A collection of EntryPoint objects, retrievable by group.
178+ An immutable collection of EntryPoint objects, retrievable by group.
177179 """
178180
181+ __slots__ = ()
182+
179183 def __getitem__ (self , group ) -> EntryPoints :
180184 return EntryPoints (ep for ep in self if ep .group == group )
181185
You can’t perform that action at this time.
0 commit comments