MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / __eq__

Method __eq__

graphs/data/base/defs.py:74–82  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

72 return hash((self.handle, self.unit, self.label, self.mainInput, self._selectorLabel))
73
74 def __eq__(self, other):
75 if not isinstance(other, XDef):
76 return False
77 return all((
78 self.handle == other.handle,
79 self.unit == other.unit,
80 self.label == other.label,
81 self.mainInput == other.mainInput,
82 self._selectorLabel == other._selectorLabel))
83
84
85class Input:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected