We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63e900c commit d5dc326Copy full SHA for d5dc326
source_py3/python_toolbox/combi/selection_space.py
@@ -38,6 +38,7 @@ def __repr__(self):
38
self.sequence
39
)
40
41
+
42
def __getitem__(self, i):
43
if isinstance(i, slice):
44
raise NotImplementedError
@@ -57,6 +58,7 @@ def __getitem__(self, i):
57
58
59
60
_reduced = property(lambda self: (type(self), self.sequence))
61
+ __hash__ = lambda self: hash(self._reduced)
62
63
__eq__ = lambda self, other: (isinstance(other, SelectionSpace) and
64
self._reduced == other._reduced)
0 commit comments