~homeworkprod/byceps-bungalows

2355ad4c151be2eb39f07d0dba46dbbc00181172 — Jochen Kupperschmidt 3 months ago 720c10c
Fix return type hint
1 files changed, 1 insertions(+), 1 deletions(-)

M byceps/services/bungalow/bungalow_service.py
M byceps/services/bungalow/bungalow_service.py => byceps/services/bungalow/bungalow_service.py +1 -1
@@ 106,7 106,7 @@ def get_bungalow_numbers_for_party(party_id: PartyID) -> set[int]:
    return set(numbers)


def get_bungalows_for_party(party_id: PartyID) -> list[DbBungalow]:
def get_bungalows_for_party(party_id: PartyID) -> Sequence[DbBungalow]:
    """Return all bungalows for the party, ordered by number."""
    return db.session.scalars(
        select(DbBungalow)