Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format code with updated black #1147

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading