MCPcopy Create free account
hub / github.com/ampproject/amphtml / __eq__

Method __eq__

validator/validator_gen_js.py:93–94  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

91 return hash((self.type_name, self.digest))
92
93 def __eq__(self, other):
94 return (self.type_name, self.digest) == (other.type_name, other.digest)
95
96 def __ne__(self, other):
97 return not self == other

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected