@@ -49,7 +49,8 @@ async def post_async(
4949 Endpoint to create a new player.
5050
5151 Args:
52- player_model (PlayerModel): The Pydantic model representing the Player to create.
52+ player_model (PlayerModel): The Pydantic model representing the Player to
53+ create.
5354 async_session (AsyncSession): The async version of a SQLAlchemy ORM session.
5455
5556 Raises:
@@ -115,7 +116,8 @@ async def get_by_id_async(
115116 PlayerModel: The Pydantic model representing the matching Player.
116117
117118 Raises:
118- HTTPException: Not found error if the Player with the specified ID does not exist.
119+ HTTPException: Not found error if the Player with the specified ID does not
120+ exist.
119121 """
120122 player = await player_service .retrieve_by_id_async (async_session , player_id )
121123 if not player :
@@ -145,7 +147,8 @@ async def get_by_squad_number_async(
145147 PlayerModel: The Pydantic model representing the matching Player.
146148
147149 Raises:
148- HTTPException: HTTP 404 Not Found error if the Player with the specified Squad Number does not exist.
150+ HTTPException: HTTP 404 Not Found error if the Player with the specified
151+ Squad Number does not exist.
149152 """
150153 player = await player_service .retrieve_by_squad_number_async (
151154 async_session , squad_number
@@ -174,11 +177,13 @@ async def put_async(
174177
175178 Args:
176179 player_id (int): The ID of the Player to update.
177- player_model (PlayerModel): The Pydantic model representing the Player to update.
180+ player_model (PlayerModel): The Pydantic model representing the Player to
181+ update.
178182 async_session (AsyncSession): The async version of a SQLAlchemy ORM session.
179183
180184 Raises:
181- HTTPException: HTTP 404 Not Found error if the Player with the specified ID does not exist.
185+ HTTPException: HTTP 404 Not Found error if the Player with the specified ID
186+ does not exist.
182187 """
183188 player = await player_service .retrieve_by_id_async (async_session , player_id )
184189 if not player :
@@ -208,7 +213,8 @@ async def delete_async(
208213 async_session (AsyncSession): The async version of a SQLAlchemy ORM session.
209214
210215 Raises:
211- HTTPException: HTTP 404 Not Found error if the Player with the specified ID does not exist.
216+ HTTPException: HTTP 404 Not Found error if the Player with the specified ID
217+ does not exist.
212218 """
213219 player = await player_service .retrieve_by_id_async (async_session , player_id )
214220 if not player :
0 commit comments