MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / CD

Class CD

test/orm/test_composites.py:813–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811 return not self.__eq__(other)
812
813 class CD:
814 def __init__(self, c, d):
815 self.c = c
816 self.d = d
817
818 def __composite_values__(self):
819 return (self.c, self.d)
820
821 def __eq__(self, other):
822 return (
823 isinstance(other, CD)
824 and self.c == other.c
825 and self.d == other.d
826 )
827
828 def __ne__(self, other):
829 return not self.__eq__(other)
830
831 class Thing:
832 def __init__(self, ab):

Callers 2

generateMethod · 0.85
test_round_tripMethod · 0.85

Calls

no outgoing calls

Tested by 2

generateMethod · 0.68
test_round_tripMethod · 0.68