| 41 | |
| 42 | |
| 43 | class A(Base): |
| 44 | __tablename__ = "a" |
| 45 | associations: Mapped[Mapping[str, B]] = relationship( |
| 46 | "B", |
| 47 | collection_class=lambda: GenDefaultCollection( |
| 48 | operator.attrgetter("key") |
| 49 | ), |
| 50 | ) |
| 51 | |
| 52 | collections: AssociationProxy[dict[str, set[int]]] = association_proxy( |
| 53 | "associations", "values" |
| 54 | ) |
| 55 | """Bridge the association from 'associations' over to the 'values' |
| 56 | association proxy of B. |
| 57 | """ |
| 58 | |
| 59 | |
| 60 | class B(Base): |
no test coverage detected