inventorymgr/service/users.py
def delete_user(user_id: int) -> None:
    """Delete a user if they exist."""
    user = User.query.get(user_id)
    if user is not None:
        db.session.delete(User.query.get(user_id))
        db.session.commit()
Delete a user if they exist.
Delete a user if they exist.
Delete a user if they exist .
def delete_user(user_id: int) -> None:
    user = User.query.get(user_id)
    if user is not None:
        db.session.delete(User.query.get(user_id))
        db.session.commit()
def delete_user ( user_id : int ) -> None : user = User . query . get ( user_id ) if user is not None : db . session . delete ( User . query . get ( user_id ) ) db . session . commit ( )
Delete a user if they exist.
Delete a user if they exist .
"""Delete a user if they exist."""
user_id
int