| 2498 | return not isinstance(other, Point) or not self.__eq__(other) |
| 2499 | |
| 2500 | class Graph(cls.DeclarativeBasic): |
| 2501 | __tablename__ = "graph" |
| 2502 | id = Column( |
| 2503 | Integer, primary_key=True, test_needs_autoincrement=True |
| 2504 | ) |
| 2505 | name = Column(String(30)) |
| 2506 | |
| 2507 | point_data = relationship("PointData") |
| 2508 | |
| 2509 | points = association_proxy( |
| 2510 | "point_data", |
| 2511 | "point", |
| 2512 | creator=lambda point: PointData(point=point), |
| 2513 | ) |
| 2514 | |
| 2515 | class PointData(ComparableEntity, cls.DeclarativeBasic): |
| 2516 | __tablename__ = "point" |