mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Make sphinx.pycode.nodes.BaseNode unhashable
This commit is contained in:
parent
f6bf9b13ff
commit
eef0b0821d
@ -29,6 +29,8 @@ class BaseNode(object):
|
||||
return NotImplemented
|
||||
return not self._eq(other)
|
||||
|
||||
__hash__ = None
|
||||
|
||||
def get_prev_sibling(self):
|
||||
"""Return previous child in parent's children, or None."""
|
||||
if self.parent is None:
|
||||
|
Loading…
Reference in New Issue
Block a user