Skip to content

Commit

Permalink
Remove Positional-Only Parameters
Browse files Browse the repository at this point in the history
GraphQL doesn't follow approach with POP,
so context breaks the arguments API.
  • Loading branch information
koldakov committed Jul 7, 2024
1 parent 6c631d7 commit 35830ce
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions futuramaapi/routers/graphql/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ async def character(
self,
info: Info,
character_id: int,
/,
) -> Character | None:
return await Character.get(info.context.session, character_id)

Expand All @@ -141,8 +140,6 @@ async def character(
async def characters( # noqa: PLR0913
self,
info: Info,
/,
*,
limit: int | None = 50,
offset: int | None = 0,
gender: GenderFilter | None = None,
Expand All @@ -166,7 +163,6 @@ async def episode(
self,
info: Info,
episode_id: int,
/,
) -> Episode | None:
return await Episode.get(info.context.session, episode_id)

Expand Down Expand Up @@ -194,7 +190,6 @@ async def season(
self,
info: Info,
season_id: int,
/,
) -> Season | None:
return await Season.get(info.context.session, season_id)

Expand Down

0 comments on commit 35830ce

Please sign in to comment.