def METHOD_NAME(
    *, db_session, service_type: str, is_active: bool
) -> List[Optional[Service]]:
    """Gets services by type and status."""
    return (
        db_session.query(Service)
        .filter(Service.type == service_type)
        .filter(Service.is_active.is_(is_active))
        .all()
    )