Skip to content

Commit 67def2e

Browse files
Typo fixes (#1459)
* Fix Star Wars spaceship name * Fix some typos in comments * Typo fixes * More typo fixes
1 parent e49a01c commit 67def2e

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

Diff for: docs/settings.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Graphene-Django can be customised using settings. This page explains each settin
66
Usage
77
-----
88

9-
Add settings to your Django project by creating a Dictonary with name ``GRAPHENE`` in the project's ``settings.py``:
9+
Add settings to your Django project by creating a Dictionary with name ``GRAPHENE`` in the project's ``settings.py``:
1010

1111
.. code:: python
1212

Diff for: examples/cookbook/dummy_data.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231
"fields": {
232232
"category": 3,
233233
"name": "Newt",
234-
"notes": "Braised and Confuesd"
234+
"notes": "Braised and Confused"
235235
},
236236
"model": "ingredients.ingredient",
237237
"pk": 5

Diff for: examples/starwars/data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def initialize():
2828

2929
# Yeah, technically it's Corellian. But it flew in the service of the rebels,
3030
# so for the purposes of this demo it's a rebel ship.
31-
falcon = Ship(id="4", name="Millenium Falcon", faction=rebels)
31+
falcon = Ship(id="4", name="Millennium Falcon", faction=rebels)
3232
falcon.save()
3333

3434
homeOne = Ship(id="5", name="Home One", faction=rebels)

Diff for: examples/starwars/tests/test_mutation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_mutations():
4040
{"node": {"id": "U2hpcDox", "name": "X-Wing"}},
4141
{"node": {"id": "U2hpcDoy", "name": "Y-Wing"}},
4242
{"node": {"id": "U2hpcDoz", "name": "A-Wing"}},
43-
{"node": {"id": "U2hpcDo0", "name": "Millenium Falcon"}},
43+
{"node": {"id": "U2hpcDo0", "name": "Millennium Falcon"}},
4444
{"node": {"id": "U2hpcDo1", "name": "Home One"}},
4545
{"node": {"id": "U2hpcDo5", "name": "Peter"}},
4646
]

Diff for: graphene_django/filter/tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Meta:
4444
"name": ["exact", "contains"],
4545
}
4646

47-
# Those are actually usable with our Query fixture bellow
47+
# Those are actually usable with our Query fixture below
4848
tags__contains = ArrayFilter(field_name="tags", lookup_expr="contains")
4949
tags__overlap = ArrayFilter(field_name="tags", lookup_expr="overlap")
5050
tags = ArrayFilter(field_name="tags", lookup_expr="exact")

Diff for: graphene_django/filter/tests/test_fields.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ class Query(ObjectType):
789789

790790
query = """
791791
query NodeFilteringQuery {
792-
allReporters(orderBy: "-firtsnaMe") {
792+
allReporters(orderBy: "-firstname") {
793793
edges {
794794
node {
795795
firstName
@@ -802,7 +802,7 @@ class Query(ObjectType):
802802
assert result.errors
803803

804804

805-
def test_order_by_is_perserved():
805+
def test_order_by_is_preserved():
806806
class ReporterType(DjangoObjectType):
807807
class Meta:
808808
model = Reporter

Diff for: graphene_django/filter/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_filtering_args_from_filterset(filterset_class, type):
4343
isinstance(filter_field, TypedFilter)
4444
and filter_field.input_type is not None
4545
):
46-
# First check if the filter input type has been explicitely given
46+
# First check if the filter input type has been explicitly given
4747
field_type = filter_field.input_type
4848
else:
4949
if name not in filterset_class.declared_filters or isinstance(

Diff for: graphene_django/forms/types.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from graphene.utils.str_converters import to_camel_case
55

66
from ..converter import BlankValueField
7-
from ..types import ErrorType # noqa Import ErrorType for backwards compatability
7+
from ..types import ErrorType # noqa Import ErrorType for backwards compatibility
88
from .mutation import fields_for_form
99

1010

@@ -60,7 +60,7 @@ def mutate(_root, _info, data):
6060
and isinstance(object_type._meta.fields[name], BlankValueField)
6161
):
6262
# Field type BlankValueField here means that field
63-
# with choises have been converted to enum
63+
# with choices have been converted to enum
6464
# (BlankValueField is using only for that task ?)
6565
setattr(cls, name, cls.get_enum_cnv_cls_instance(name, object_type))
6666
elif (

Diff for: graphene_django/tests/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class Meta:
9797

9898
class APNewsReporter(Reporter):
9999
"""
100-
This class only inherits from Reporter for testing multi table inheritence
100+
This class only inherits from Reporter for testing multi table inheritance
101101
similar to what you'd see in django-polymorphic
102102
"""
103103

0 commit comments

Comments
 (0)