Skip to content

Commit f43f397

Browse files
committed
Fix the != comparison for SectionPage
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.
1 parent 74056d3 commit f43f397

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

mkdocs_section_index/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ def __repr__(self):
2020
def __eq__(self, other):
2121
return object.__eq__(self, other)
2222

23+
def __ne__(self, other):
24+
return not (self == other)
25+
2326
def __hash__(self):
2427
return object.__hash__(self)

0 commit comments

Comments
 (0)