Type the relationships of Path

This commit is contained in:
Alexander Hess 2026-12-01 11:12:38 +01:00
commit af0e3cf1a1
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -109,11 +109,11 @@ class Path(meta.Base):
)
# Relationships
first_address = orm.relationship(
first_address: orm.Mapped[db.Address] = orm.relationship(
"Address",
foreign_keys="[Path.first_address_id, Path.city_id]",
)
second_address = orm.relationship(
second_address: orm.Mapped[db.Address] = orm.relationship(
"Address",
foreign_keys="[Path.second_address_id, Path.city_id]",
overlaps="first_address",