MCPcopy Create free account
hub / github.com/ccxt/ccxt / __eq__

Method __eq__

python/ccxt/base/precise.py:74–78  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

72 return self.ge(other)
73
74 def __eq__(self, other):
75 if isinstance(other, str):
76 # Allow comparisons with Precise("5") == "5"
77 return str(self) == other
78 return self.equals(other)
79
80 def mul(self, other):
81 integer_result = self.integer * other.integer

Callers

nothing calls this directly

Calls 1

equalsMethod · 0.95

Tested by

no test coverage detected