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 deea255 commit a65654dCopy full SHA for a65654d
clang/bindings/python/clang/cindex.py
@@ -395,11 +395,11 @@ def end(self):
395
return conf.lib.clang_getRangeEnd(self) # type: ignore [no-any-return]
396
397
def __eq__(self, other):
398
- return isinstance(other, SourceRange) and conf.lib.clang_equalRanges(self, other)
399
-
400
return isinstance(other, SourceRange) and conf.lib.clang_equalRanges(
401
self, other
402
)
+
+ def __ne__(self, other):
403
return not self.__eq__(other)
404
405
def __contains__(self, other):
0 commit comments