def get(*, db_session, task_id: int) -> Optional[Task]:
    'Get a single task by ID.'
    return db_session.query(Task).filter((Task.id == task_id)).first()
Get a single task by ID.
def get(*, db_session, task_id: int) -> Optional[Task]:
    
    return db_session.query(Task).filter((Task.id == task_id)).first()