Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 967d58d

Browse files
committed
Use American English
Replicates graphql/graphql-js@82ff653
1 parent 002567e commit 967d58d

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

‎src/graphql/type/directives.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any, Collection, Dict, Optional, Tuple, cast
22

3-
from ..language import ast, DirectiveLocation
3+
from ..language import DirectiveLocation, ast
44
from ..pyutils import inspect, is_description
55
from .assert_name import assert_name
66
from .definition import GraphQLArgument, GraphQLInputType, GraphQLNonNull, is_input_type
@@ -224,17 +224,17 @@ def assert_directive(directive: Any) -> GraphQLDirective:
224224
description="Marks an element of a GraphQL schema as no longer supported.",
225225
)
226226

227-
# Used to provide a URL for specifying the behaviour of custom scalar definitions:
227+
# Used to provide a URL for specifying the behavior of custom scalar definitions:
228228
GraphQLSpecifiedByDirective = GraphQLDirective(
229229
name="specifiedBy",
230230
locations=[DirectiveLocation.SCALAR],
231231
args={
232232
"url": GraphQLArgument(
233233
GraphQLNonNull(GraphQLString),
234-
description="The URL that specifies the behaviour of this scalar.",
234+
description="The URL that specifies the behavior of this scalar.",
235235
)
236236
},
237-
description="Exposes a URL that specifies the behaviour of this scalar.",
237+
description="Exposes a URL that specifies the behavior of this scalar.",
238238
)
239239

240240

‎tests/utilities/test_build_ast_schema.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44
from pytest import mark, raises
55

66
from graphql import graphql_sync
7-
from graphql.language import parse, print_ast, DocumentNode, InterfaceTypeDefinitionNode
7+
from graphql.language import DocumentNode, InterfaceTypeDefinitionNode, parse, print_ast
88
from graphql.type import (
9-
GraphQLDeprecatedDirective,
10-
GraphQLIncludeDirective,
11-
GraphQLSchema,
12-
GraphQLSkipDirective,
13-
GraphQLSpecifiedByDirective,
14-
GraphQLBoolean,
15-
GraphQLFloat,
16-
GraphQLID,
17-
GraphQLInt,
18-
GraphQLString,
199
GraphQLArgument,
10+
GraphQLBoolean,
11+
GraphQLDeprecatedDirective,
2012
GraphQLEnumType,
2113
GraphQLEnumValue,
2214
GraphQLField,
15+
GraphQLFloat,
16+
GraphQLID,
17+
GraphQLIncludeDirective,
2318
GraphQLInputField,
19+
GraphQLInt,
2420
GraphQLNamedType,
21+
GraphQLSchema,
22+
GraphQLSkipDirective,
23+
GraphQLSpecifiedByDirective,
24+
GraphQLString,
2525
assert_directive,
2626
assert_enum_type,
2727
assert_input_object_type,
@@ -1121,7 +1121,7 @@ def can_build_invalid_schema():
11211121
assert errors
11221122

11231123
def do_not_override_standard_types():
1124-
# Note: not sure it's desired behaviour to just silently ignore override
1124+
# Note: not sure it's desired behavior to just silently ignore override
11251125
# attempts so just documenting it here.
11261126

11271127
schema = build_schema(

‎tests/utilities/test_print_schema.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
from typing import cast, Any, Dict
1+
from typing import Any, Dict, cast
22

33
from graphql.language import DirectiveLocation
44
from graphql.type import (
55
GraphQLArgument,
66
GraphQLBoolean,
7+
GraphQLDirective,
78
GraphQLEnumType,
89
GraphQLField,
910
GraphQLFloat,
11+
GraphQLInputField,
1012
GraphQLInputObjectType,
1113
GraphQLInt,
1214
GraphQLInterfaceType,
@@ -17,13 +19,11 @@
1719
GraphQLSchema,
1820
GraphQLString,
1921
GraphQLUnionType,
20-
GraphQLInputField,
21-
GraphQLDirective,
2222
)
2323
from graphql.utilities import (
2424
build_schema,
25-
print_schema,
2625
print_introspection_schema,
26+
print_schema,
2727
print_value,
2828
)
2929

@@ -667,9 +667,9 @@ def prints_introspection_schema():
667667
reason: String = "No longer supported"
668668
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
669669
670-
"""Exposes a URL that specifies the behaviour of this scalar."""
670+
"""Exposes a URL that specifies the behavior of this scalar."""
671671
directive @specifiedBy(
672-
"""The URL that specifies the behaviour of this scalar."""
672+
"""The URL that specifies the behavior of this scalar."""
673673
url: String!
674674
) on SCALAR
675675

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /