SharedGeometry.__eq__#
- t3toolbox.shared_geometry.SharedGeometry.__eq__(other)#
def __eq__(self, other) -> bool: # type(self), NOT the hardcoded class: a SUBCLASS is a different geometry, and this pair is a jit # cache key (a SharedGeometry rides in GaussNewtonModel's aux). Hardcoding the name made a # subclass with different math compare and hash EQUAL to the plain wrapper, so whichever was # compiled first served both -- a silent wrong answer for the un-subclassed object.
- Return type:
bool