Skip to content

Commit 9ea10f5

Browse files
committed
Fixed lint errors
1 parent c9e7f67 commit 9ea10f5

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

graphene/core/classtypes/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import copy
22
import inspect
3-
from functools import partial
43
from collections import OrderedDict
4+
from functools import partial
55

66
import six
77

graphene/core/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
from graphene import signals
1212

13+
from ..plugins import CamelCase, Plugin
1314
from .classtypes.base import ClassType
1415
from .types.base import BaseType
15-
from ..plugins import Plugin, CamelCase
1616

1717

1818
class GraphQLSchema(_GraphQLSchema):

graphene/core/types/base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
from collections import OrderedDict
2-
from functools import total_ordering, partial
2+
from functools import partial, total_ordering
33

44
import six
55

6-
from ...utils import to_camel_case
7-
86

97
class BaseType(object):
108

@@ -136,6 +134,7 @@ class NamedType(BaseType):
136134

137135

138136
class GroupNamedType(BaseType):
137+
139138
def __init__(self, *types):
140139
self.types = types
141140

graphene/core/types/field.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from ..classtypes.mutation import Mutation
1010
from ..exceptions import SkipField
1111
from .argument import ArgumentsGroup, snake_case_args
12-
from .base import LazyType, NamedType, MountType, OrderedType, GroupNamedType
12+
from .base import GroupNamedType, LazyType, MountType, NamedType, OrderedType
1313
from .definitions import NonNull
1414

1515

@@ -145,6 +145,7 @@ def internal_type(self, schema):
145145

146146

147147
class FieldsGroupType(GroupNamedType):
148+
148149
def iter_types(self, schema):
149150
for field in sorted(self.types):
150151
try:

graphene/plugins/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
class Plugin(object):
2+
23
def contribute_to_schema(self, schema):
34
self.schema = schema
45

graphene/plugins/camel_case.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
from .base import Plugin
2-
31
from ..core.types.base import GroupNamedType
42
from ..utils import memoize, to_camel_case
3+
from .base import Plugin
54

65

76
def camelcase_named_type(schema, type):
@@ -10,6 +9,7 @@ def camelcase_named_type(schema, type):
109

1110

1211
class CamelCase(Plugin):
12+
1313
@memoize
1414
def transform_group(self, _type):
1515
new_type = _type.__class__(*_type.types)

0 commit comments

Comments
 (0)