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.
__lt__()
BaseNode
1 parent b6895bb commit f37f021Copy full SHA for f37f021
elastic_transport/_node/_base.py
@@ -143,6 +143,11 @@ def path_prefix(self) -> str:
143
def __repr__(self) -> str:
144
return f"<{self.__class__.__name__}({self.base_url})>"
145
146
+ def __lt__(self, other: object) -> bool:
147
+ if not isinstance(other, BaseNode):
148
+ return NotImplemented
149
+ return id(self) < id(other)
150
+
151
def __eq__(self, other: object) -> bool:
152
if not isinstance(other, BaseNode):
153
return NotImplemented
0 commit comments