From 76982126f43fc07ca690e10e933097bba7cd1755 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Tue, 1 Dec 2026 11:14:17 +0100 Subject: [PATCH] Type the relationships of `Restaurant` --- src/velofy/db/restaurants.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/velofy/db/restaurants.py b/src/velofy/db/restaurants.py index 733006d..5f7acbc 100644 --- a/src/velofy/db/restaurants.py +++ b/src/velofy/db/restaurants.py @@ -62,8 +62,11 @@ class Restaurant(meta.Base): ) # Relationships - address = orm.relationship("Address", back_populates="restaurants") - orders = orm.relationship( + address: orm.Mapped[db.Address] = orm.relationship( + "Address", + back_populates="restaurants", + ) + orders: orm.Mapped[list[db.Order]] = orm.relationship( "Order", back_populates="restaurant", overlaps="orders_picked_up,pickup_address",