Skip to content

Commit

Permalink
Minor clean-up of import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Jan 24, 2020
1 parent 7946b37 commit baf5fe4
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 13 deletions.
5 changes: 2 additions & 3 deletions graphql/backend/base.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from ..pyutils.cached_property import cached_property
from ..language import ast

from abc import ABCMeta, abstractmethod
import six

from ..pyutils.cached_property import cached_property
from ..language import ast

# Necessary for static type checking
if False: # flake8: noqa
Expand Down
2 changes: 1 addition & 1 deletion graphql/backend/cache.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from hashlib import sha1

from six import string_types
from ..type import GraphQLSchema

from ..type import GraphQLSchema
from .base import GraphQLBackend

# Necessary for static type checking
Expand Down
1 change: 1 addition & 0 deletions graphql/backend/compiled.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from six import string_types

from .base import GraphQLDocument

# Necessary for static type checking
Expand Down
2 changes: 1 addition & 1 deletion graphql/backend/core.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from functools import partial

from six import string_types

from ..execution import execute, ExecutionResult
from ..language.base import parse, print_ast
from ..language import ast
from ..validation import validate

from .base import GraphQLBackend, GraphQLDocument

# Necessary for static type checking
Expand Down
3 changes: 1 addition & 2 deletions graphql/backend/decider.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
import os
from time import sleep, time


from ..pyutils.compat import Queue, check_threads
from .base import GraphQLBackend, GraphQLDocument
from .cache import GraphQLCachedBackend
from ..pyutils.compat import Queue, check_threads

# Necessary for static type checking
if False: # flake8: noqa
Expand Down
5 changes: 2 additions & 3 deletions graphql/backend/quiver_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
"You can install it using: pip install requests"
)

from ..utils.schema_printer import print_schema
from six.moves.urllib.parse import urlparse

from ..utils.schema_printer import print_schema
from .base import GraphQLBackend
from .compiled import GraphQLCompiledDocument

from six.moves.urllib.parse import urlparse

GRAPHQL_QUERY = """
mutation($schemaDsl: String!, $query: String!, $pythonOptions: PythonOptions) {
generateCode(
Expand Down
1 change: 1 addition & 0 deletions graphql/error/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import six

from ..language.location import get_location

# Necessary for static type checking
Expand Down
4 changes: 1 addition & 3 deletions tests_py35/core_execution/test_asyncio_executor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# flake8: noqa
import pytest
import asyncio
import functools

from graphql.error import format_error
from graphql.execution import execute
from graphql.language.parser import parse
Expand Down

0 comments on commit baf5fe4

Please sign in to comment.