inventorymgr/borrowstates.py
def open_borrowstates_for_item(item: BorrowableItem) -> Iterable[BorrowState]:
    """Return all borrow states for an item without a return date."""
    return cast(
        Iterable[BorrowState],
        BorrowState.query.filter_by(borrowed_item=item, returned_at=None).all(),
    )
Return all borrow states for an item without a return date.
Return all borrow states for an item without a return date.
Return all borrow states for an item without a return date .
def open_borrowstates_for_item(item: BorrowableItem) -> Iterable[BorrowState]:
    return cast(
        Iterable[BorrowState],
        BorrowState.query.filter_by(borrowed_item=item, returned_at=None).all(),
    )
def open_borrowstates_for_item ( item : BorrowableItem ) -> Iterable [ BorrowState ] : return cast ( Iterable [ BorrowState ] , BorrowState . query . filter_by ( borrowed_item = item , returned_at = None ) . all ( ) , )
Return all borrow states for an item without a return date.
Return all borrow states for an item without a return date .
"""Return all borrow states for an item without a return date."""
item
BorrowableItem