Skip to content

Commit c4a9689

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 289fd4d commit c4a9689

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/graphql_sqlalchemy/graphql_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def get_graphql_type_from_column(
139139

140140

141141
def get_base_comparison_fields(
142-
graphql_type: GraphQLScalarType | GraphQLEnumType | GraphQLList[Any]
142+
graphql_type: GraphQLScalarType | GraphQLEnumType | GraphQLList[Any],
143143
) -> dict[str, GraphQLInputField]:
144144
return {
145145
"_eq": GraphQLInputField(graphql_type),

src/graphql_sqlalchemy/resolvers.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ def all_scalars(
4848
selection: W,
4949
*,
5050
execution_options: OrmExecuteOptionsParameter = MappingProxyType({}),
51-
) -> Sequence[DeclarativeBase]:
52-
...
51+
) -> Sequence[DeclarativeBase]: ...
5352

5453

5554
@overload
@@ -58,8 +57,7 @@ def all_scalars(
5857
selection: W,
5958
*,
6059
execution_options: OrmExecuteOptionsParameter = MappingProxyType({}),
61-
) -> Awaitable[Sequence[DeclarativeBase]]:
62-
...
60+
) -> Awaitable[Sequence[DeclarativeBase]]: ...
6361

6462

6563
def all_scalars(
@@ -281,15 +279,13 @@ def resolver(_root: None, info: ResolveInfo, **kwargs: dict[str, Any]) -> Awaita
281279
@overload
282280
def session_add_object(
283281
obj: dict[str, Any], model: type[DeclarativeBase], session: Session, *, on_conflict: dict[str, Any] | None
284-
) -> DeclarativeBase:
285-
...
282+
) -> DeclarativeBase: ...
286283

287284

288285
@overload
289286
def session_add_object(
290287
obj: dict[str, Any], model: type[DeclarativeBase], session: AsyncSession, *, on_conflict: dict[str, Any] | None
291-
) -> Awaitable[DeclarativeBase]:
292-
...
288+
) -> Awaitable[DeclarativeBase]: ...
293289

294290

295291
def session_add_object(

0 commit comments

Comments
 (0)