inventorymgr/users.py
def update_user(user_id: int) -> Dict[str, Any]:
    """Flask view to update a user using PUT."""
    user_obj = api.UpdatedUser.parse_obj(request.json)
    user = service.update_user(user_id, user_obj)
    return api.User.from_orm(user).dict()
Flask view to update a user using PUT.
Flask view to update a user using PUT.
Flask view to update a user using PUT .
def update_user(user_id: int) -> Dict[str, Any]:
    user_obj = api.UpdatedUser.parse_obj(request.json)
    user = service.update_user(user_id, user_obj)
    return api.User.from_orm(user).dict()
def update_user ( user_id : int ) -> Dict [ str , Any ] : user_obj = api . UpdatedUser . parse_obj ( request . json ) user = service . update_user ( user_id , user_obj ) return api . User . from_orm ( user ) . dict ( )
Flask view to update a user using PUT.
Flask view to update a user using PUT .
"""Flask view to update a user using PUT."""
user_id
int