diff --git a/src/velofy/db/customers.py b/src/velofy/db/customers.py index 25bbc35..5c852ae 100644 --- a/src/velofy/db/customers.py +++ b/src/velofy/db/customers.py @@ -26,7 +26,10 @@ class Customer(meta.Base): return f"<{self.__class__.__name__}(#{self.id})>" # Relationships - orders = orm.relationship("Order", back_populates="customer") + orders: orm.Mapped[list["db.Order"]] = orm.relationship( + "Order", + back_populates="customer", + ) def clear_map(self) -> "Customer": # pragma: no cover """Shortcut to the `...city.clear_map()` method.