Skip to content

Commit

Permalink
Fix the != comparison for SectionPage
Browse files Browse the repository at this point in the history
Fixes #10

Because MkDocs' base classes define this operation, the implicit definition does not kick in, and the result is always wrong.

Either this or mkdocs/mkdocs#2735 would fix it.
  • Loading branch information
oprypin committed Dec 30, 2021
1 parent 74056d3 commit f43f397
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mkdocs_section_index/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ def __repr__(self):
def __eq__(self, other):
return object.__eq__(self, other)

def __ne__(self, other):
return not (self == other)

def __hash__(self):
return object.__hash__(self)

0 comments on commit f43f397

Please sign in to comment.