Skip to content

Commit 6c19593

Browse files
committed
Fixed sorts
1 parent 57044f7 commit 6c19593

17 files changed

+26
-27
lines changed

graphql/execution/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# -*- coding: utf-8 -*-
22
from ..error import GraphQLError
33
from ..language import ast
4+
from ..pyutils.default_ordered_dict import DefaultOrderedDict
45
from ..type.definition import GraphQLInterfaceType, GraphQLUnionType
56
from ..type.directives import GraphQLIncludeDirective, GraphQLSkipDirective
67
from ..type.introspection import (SchemaMetaFieldDef, TypeMetaFieldDef,
78
TypeNameMetaFieldDef)
89
from ..utils.type_from_ast import type_from_ast
9-
from ..pyutils.default_ordered_dict import DefaultOrderedDict
1010
from .values import get_argument_values, get_variable_values
1111

1212
Undefined = object()

graphql/execution/executor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
import logging
44
import sys
55

6-
from ..pyutils.ordereddict import OrderedDict
7-
86
from promise import Promise, promise_for_dict, promisify
97

108
from ..error import GraphQLError, GraphQLLocatedError
119
from ..pyutils.default_ordered_dict import DefaultOrderedDict
10+
from ..pyutils.ordereddict import OrderedDict
1211
from ..type import (GraphQLEnumType, GraphQLInterfaceType, GraphQLList,
1312
GraphQLNonNull, GraphQLObjectType, GraphQLScalarType,
1413
GraphQLSchema, GraphQLUnionType)

graphql/execution/executors/asyncio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import absolute_import
22

33
from asyncio import Future, get_event_loop, iscoroutine, wait
4+
45
from promise import promisify
56

67
try:

graphql/execution/executors/gevent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import absolute_import
22

33
import gevent
4+
45
from promise import Promise
56

67
from .utils import process

graphql/execution/tests/test_benchmark.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
from functools import partial
21
from collections import namedtuple
3-
from graphql import GraphQLObjectType, GraphQLField, GraphQLList, GraphQLInt, GraphQLSchema, execute, parse, Source
2+
from functools import partial
3+
4+
from graphql import (GraphQLField, GraphQLInt, GraphQLList, GraphQLObjectType,
5+
GraphQLSchema, Source, execute, parse)
46

57

68
def test_big_list_of_ints(benchmark):

graphql/execution/tests/test_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from pytest import raises
44

55
from graphql.error import GraphQLError
6-
from graphql.execution import execute, MiddlewareManager
6+
from graphql.execution import MiddlewareManager, execute
77
from graphql.language.parser import parse
88
from graphql.type import (GraphQLArgument, GraphQLBoolean, GraphQLField,
99
GraphQLInt, GraphQLList, GraphQLObjectType,

graphql/type/definition.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import collections
22
import copy
33

4-
from ..pyutils.ordereddict import OrderedDict
5-
64
from ..language import ast
7-
from ..utils.assert_valid_name import assert_valid_name
85
from ..pyutils.cached_property import cached_property
6+
from ..pyutils.ordereddict import OrderedDict
7+
from ..utils.assert_valid_name import assert_valid_name
98

109

1110
def is_type(type):

graphql/type/directives.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
from ..pyutils.ordereddict import OrderedDict
44
from ..utils.assert_valid_name import assert_valid_name
5-
from .definition import (GraphQLArgument,
6-
GraphQLNonNull, is_input_type)
5+
from .definition import GraphQLArgument, GraphQLNonNull, is_input_type
76
from .scalars import GraphQLBoolean
87

98

graphql/type/introspection.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22

33
from ..language.printer import print_ast
44
from ..utils.ast_from_value import ast_from_value
5-
from .definition import (GraphQLArgument, GraphQLEnumType,
6-
GraphQLEnumValue, GraphQLField,
7-
GraphQLInputObjectType,
5+
from .definition import (GraphQLArgument, GraphQLEnumType, GraphQLEnumValue,
6+
GraphQLField, GraphQLInputObjectType,
87
GraphQLInterfaceType, GraphQLList, GraphQLNonNull,
98
GraphQLObjectType, GraphQLScalarType,
109
GraphQLUnionType)
1110
from .directives import DirectiveLocation
1211
from .scalars import GraphQLBoolean, GraphQLString
1312

14-
1513
InputField = namedtuple('InputField', ['name', 'description', 'type', 'default_value'])
1614
Field = namedtuple('Field', ['name', 'type', 'description', 'args', 'deprecation_reason'])
1715

graphql/type/scalars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from six import text_type, string_types
1+
from six import string_types, text_type
22

33
from ..language.ast import BooleanValue, FloatValue, IntValue, StringValue
44
from .definition import GraphQLScalarType

0 commit comments

Comments
 (0)