Skip to content

Commit baf5fe4

Browse files
committed
Minor clean-up of import statements
1 parent 7946b37 commit baf5fe4

File tree

8 files changed

+10
-13
lines changed

8 files changed

+10
-13
lines changed

graphql/backend/base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
from ..pyutils.cached_property import cached_property
2-
from ..language import ast
3-
41
from abc import ABCMeta, abstractmethod
52
import six
63

4+
from ..pyutils.cached_property import cached_property
5+
from ..language import ast
76

87
# Necessary for static type checking
98
if False: # flake8: noqa

graphql/backend/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from hashlib import sha1
22

33
from six import string_types
4-
from ..type import GraphQLSchema
54

5+
from ..type import GraphQLSchema
66
from .base import GraphQLBackend
77

88
# Necessary for static type checking

graphql/backend/compiled.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from six import string_types
2+
23
from .base import GraphQLDocument
34

45
# Necessary for static type checking

graphql/backend/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from functools import partial
2+
23
from six import string_types
34

45
from ..execution import execute, ExecutionResult
56
from ..language.base import parse, print_ast
67
from ..language import ast
78
from ..validation import validate
8-
99
from .base import GraphQLBackend, GraphQLDocument
1010

1111
# Necessary for static type checking

graphql/backend/decider.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
import os
55
from time import sleep, time
66

7-
7+
from ..pyutils.compat import Queue, check_threads
88
from .base import GraphQLBackend, GraphQLDocument
99
from .cache import GraphQLCachedBackend
10-
from ..pyutils.compat import Queue, check_threads
1110

1211
# Necessary for static type checking
1312
if False: # flake8: noqa

graphql/backend/quiver_cloud.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
"You can install it using: pip install requests"
77
)
88

9-
from ..utils.schema_printer import print_schema
9+
from six.moves.urllib.parse import urlparse
1010

11+
from ..utils.schema_printer import print_schema
1112
from .base import GraphQLBackend
1213
from .compiled import GraphQLCompiledDocument
1314

14-
from six.moves.urllib.parse import urlparse
15-
1615
GRAPHQL_QUERY = """
1716
mutation($schemaDsl: String!, $query: String!, $pythonOptions: PythonOptions) {
1817
generateCode(

graphql/error/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import six
2+
23
from ..language.location import get_location
34

45
# Necessary for static type checking

tests_py35/core_execution/test_asyncio_executor.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# flake8: noqa
2-
import pytest
31
import asyncio
4-
import functools
2+
53
from graphql.error import format_error
64
from graphql.execution import execute
75
from graphql.language.parser import parse

0 commit comments

Comments
 (0)