Make mypy as strict as practical #13

Merged
alexander merged 32 commits from stricter-mypy into develop 2026-12-01 14:26:52 +01:00
Showing only changes of commit af0e3cf1a1 - Show all commits

Type the relationships of Path

Alexander Hess 2026-12-01 11:12:38 +01:00
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",