We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36d9a41 commit c225fc2Copy full SHA for c225fc2
1 file changed
mkdocstrings/handlers/crystal/items.py
@@ -512,3 +512,11 @@ def __str__(self) -> str:
512
513
def __repr__(self) -> str:
514
return repr(self.full_name)
515
+
516
+ def __eq__(self, other) -> bool:
517
+ if isinstance(other, DocPath):
518
+ other = other.abs_id
519
+ return isinstance(other, str) and self.abs_id == other
520
521
+ def __hash__(self):
522
+ return hash(self.abs_id)
0 commit comments