Skip to content

Commit e90aa1b

Browse files
minho42ProjectCheshire
authored andcommitted
Fix typos (#1066)
Fixed typos in docs, string literals, comments, test name
1 parent 8e7d76b commit e90aa1b

File tree

12 files changed

+15
-15
lines changed

12 files changed

+15
-15
lines changed

docs/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ What is Graphene?
2424

2525
Graphene is a library that provides tools to implement a GraphQL API in Python using a *code-first* approach.
2626

27-
Compare Graphene's *code-first* approach to building a GraphQL API with *schema-first* approaches like `Apollo Server`_ (JavaScript) or Ariadne_ (Python). Instead of writing GraphQL **Schema Definition Langauge (SDL)**, we write Python code to describe the data provided by your server.
27+
Compare Graphene's *code-first* approach to building a GraphQL API with *schema-first* approaches like `Apollo Server`_ (JavaScript) or Ariadne_ (Python). Instead of writing GraphQL **Schema Definition Language (SDL)**, we write Python code to describe the data provided by your server.
2828

2929
.. _Apollo Server: https://www.apollographql.com/docs/apollo-server/
3030

docs/types/objecttypes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ The two resolvers in this example are effectively the same.
195195
196196
# ...
197197
198-
If you prefer your code to be more explict, feel free to use ``@staticmethod`` decorators. Otherwise, your code may be cleaner without them!
198+
If you prefer your code to be more explicit, feel free to use ``@staticmethod`` decorators. Otherwise, your code may be cleaner without them!
199199
200200
.. _DefaultResolver:
201201
@@ -251,7 +251,7 @@ GraphQL Argument defaults
251251
252252
If you define an argument for a field that is not required (and in a query
253253
execution it is not provided as an argument) it will not be passed to the
254-
resolver function at all. This is so that the developer can differenciate
254+
resolver function at all. This is so that the developer can differentiate
255255
between a ``undefined`` value for an argument and an explicit ``null`` value.
256256
257257
For example, given this schema:

examples/starwars_relay/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def setup():
1414

1515
# Yeah, technically it's Corellian. But it flew in the service of the rebels,
1616
# so for the purposes of this demo it's a rebel ship.
17-
falcon = Ship(id="4", name="Millenium Falcon")
17+
falcon = Ship(id="4", name="Millennium Falcon")
1818

1919
homeOne = Ship(id="5", name="Home One")
2020

examples/starwars_relay/tests/snapshots/snap_test_mutation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{"node": {"id": "U2hpcDox", "name": "X-Wing"}},
1818
{"node": {"id": "U2hpcDoy", "name": "Y-Wing"}},
1919
{"node": {"id": "U2hpcDoz", "name": "A-Wing"}},
20-
{"node": {"id": "U2hpcDo0", "name": "Millenium Falcon"}},
20+
{"node": {"id": "U2hpcDo0", "name": "Millennium Falcon"}},
2121
{"node": {"id": "U2hpcDo1", "name": "Home One"}},
2222
{"node": {"id": "U2hpcDo5", "name": "Peter"}},
2323
]

graphene/types/argument.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Argument(MountedType):
3030
type (class for a graphene.UnmountedType): must be a class (not an instance) of an
3131
unmounted graphene type (ex. scalar or object) which is used for the type of this
3232
argument in the GraphQL schema.
33-
required (bool): indicates this argument as not null in the graphql scehma. Same behavior
33+
required (bool): indicates this argument as not null in the graphql schema. Same behavior
3434
as graphene.NonNull. Default False.
3535
name (str): the name of the GraphQL argument. Defaults to parameter name.
3636
description (str): the description of the GraphQL argument in the schema.

graphene/types/field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Person(ObjectType):
5050
object. Alternative to resolver (cannot set both source and resolver).
5151
deprecation_reason (optional, str): Setting this value indicates that the field is
5252
depreciated and may provide instruction or reason on how for clients to proceed.
53-
required (optional, bool): indicates this field as not null in the graphql scehma. Same behavior as
53+
required (optional, bool): indicates this field as not null in the graphql schema. Same behavior as
5454
graphene.NonNull. Default False.
5555
name (optional, str): the name of the GraphQL field (must be unique in a type). Defaults to attribute
5656
name.

graphene/types/inputfield.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Person(InputObjectType):
3838
deprecation_reason (optional, str): Setting this value indicates that the field is
3939
depreciated and may provide instruction or reason on how for clients to proceed.
4040
description (optional, str): Description of the GraphQL field in the schema.
41-
required (optional, bool): Indicates this input field as not null in the graphql scehma.
41+
required (optional, bool): Indicates this input field as not null in the graphql schema.
4242
Raises a validation error if argument not provided. Same behavior as graphene.NonNull.
4343
Default False.
4444
**extra_args (optional, Dict): Not used.

graphene/types/objecttype.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ObjectType(BaseType):
2222
have a name, but most importantly describe their fields.
2323
2424
The name of the type defined by an _ObjectType_ defaults to the class name. The type
25-
description defaults to the class docstring. This can be overriden by adding attributes
25+
description defaults to the class docstring. This can be overridden by adding attributes
2626
to a Meta inner class.
2727
2828
The class attributes of an _ObjectType_ are mounted as instances of ``graphene.Field``.
@@ -66,8 +66,8 @@ class Query(ObjectType):
6666
docstring.
6767
interfaces (Iterable[graphene.Interface]): GraphQL interfaces to extend with this object.
6868
all fields from interface will be included in this object's schema.
69-
possible_types (Iterable[class]): Used to test parent value object via isintance to see if
70-
this type can be used to resolve an ambigous type (interface, union).
69+
possible_types (Iterable[class]): Used to test parent value object via isinstance to see if
70+
this type can be used to resolve an ambiguous type (interface, union).
7171
default_resolver (any Callable resolver): Override the default resolver for this
7272
type. Defaults to graphene default resolver which returns an attribute or dictionary
7373
key with the same name as the field.

graphene/types/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def execute(self, *args, **kwargs):
481481
as string or parsed AST form from `graphql-core`.
482482
root_value (Any, optional): Value to use as the parent value object when resolving
483483
root types.
484-
context_value (Any, optional): Value to be made avaiable to all resolvers via
484+
context_value (Any, optional): Value to be made available to all resolvers via
485485
`info.context`. Can be used to share authorization, dataloaders or other
486486
information needed to resolve an operation.
487487
variable_values (dict, optional): If variables are used in the request string, they can

graphene/types/tests/test_enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class RGB(Enum):
172172
assert RGB.BLUE == 3
173173

174174

175-
def test_enum_can_be_initialzied():
175+
def test_enum_can_be_initialized():
176176
class RGB(Enum):
177177
RED = 1
178178
GREEN = 2

0 commit comments

Comments
 (0)