Skip to content

Commit

Permalink
Format code with updated black (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp authored Jan 29, 2024
1 parent 464ba67 commit c7d89f3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions ariadne/explorer/playground.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ def build_settings(
if tracing_tracing_supported is not None:
settings["tracing.tracingSupported"] = tracing_tracing_supported
if query_plan_hide_query_plan_response is not None:
settings[
"queryPlan.hideQueryPlanResponse"
] = query_plan_hide_query_plan_response
settings["queryPlan.hideQueryPlanResponse"] = (
query_plan_hide_query_plan_response
)

return settings

Expand Down
3 changes: 1 addition & 2 deletions ariadne/file_uploads.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@


class FilesDict(Protocol):
def __getitem__(self, key):
... # pragma: no-cover
def __getitem__(self, key): ... # pragma: no-cover


def combine_multipart_data(
Expand Down
3 changes: 1 addition & 2 deletions ariadne/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,7 @@ def __call__(
rules: Optional[Collection[Type[ASTValidationRule]]] = None,
max_errors: Optional[int] = None,
type_info: Optional[TypeInfo] = None,
) -> List[GraphQLError]:
...
) -> List[GraphQLError]: ...


"""Type of `validation_rules` option of GraphQL servers.
Expand Down
3 changes: 1 addition & 2 deletions tests/test_default_resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def test_graphql_core_default_resolver_passess_default_resolver_check():


def test_custom_resolver_fails_default_resolver_check():
def custom_resolver(*_):
... # pragma: no-cover
def custom_resolver(*_): ... # pragma: no-cover

assert not is_default_resolver(custom_resolver)

0 comments on commit c7d89f3

Please sign in to comment.