MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / Point

Class Point

test/ext/test_hybrid.py:1582–1590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1580
1581@dataclasses.dataclass(eq=False)
1582class Point(hybrid.Comparator):
1583 x: int | SQLColumnExpression[int]
1584 y: int | SQLColumnExpression[int]
1585
1586 def operate(self, op, other, **kwargs):
1587 return op(self.x, other.x) & op(self.y, other.y)
1588
1589 def __clause_element__(self):
1590 return tuple_(self.x, self.y)
1591
1592
1593class DMLTest(

Calls

no outgoing calls

Tested by 6

xyMethod · 0.56
test_expand_dml_bulkMethod · 0.56