Skip to content

Commit

Permalink
Fix slotscheck
Browse files Browse the repository at this point in the history
asmeurer committed Aug 23, 2024
1 parent 8fcd086 commit aa4ddab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ndindex/ndindex.py
Original file line number Diff line number Diff line change
@@ -210,6 +210,8 @@ def __hash__(self): # pragma: no cover
return hash(self.args)

class NDIndexBase:
__slots__ = ()

def reduce(self, shape=None, *, negative_int=False):
"""
Simplify an index given that it will be applied to an array of a given shape.

0 comments on commit aa4ddab

Please sign in to comment.