From 9c8a1a1c4da8696394ac8f880aa49d8797d83be4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 30 Oct 2023 16:32:37 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- swapi/film.py | 1 - swapi/utils/connections.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/swapi/film.py b/swapi/film.py index 84b1629..873b070 100644 --- a/swapi/film.py +++ b/swapi/film.py @@ -203,7 +203,6 @@ class FilmsEdge: @staticmethod def from_row(row: prisma.models.Film) -> "FilmsEdge": - return FilmsEdge(cursor=str(row.id), node=Film.from_row(row)) diff --git a/swapi/utils/connections.py b/swapi/utils/connections.py index 2de0323..9c93d40 100644 --- a/swapi/utils/connections.py +++ b/swapi/utils/connections.py @@ -64,7 +64,7 @@ async def get_connection_object( first: int | None = strawberry.UNSET, last: int | None = strawberry.UNSET, attribute_name: str | None = None, - additional_filters: dict[str, Any] | None = None + additional_filters: dict[str, Any] | None = None, ): """Returns a ConnectionType instance based on EdgeType and the passed params.