Skip to content

Commit 027c405

Browse files
committed
Fixed python errors
1 parent a774602 commit 027c405

26 files changed

+26
-27
lines changed

graphql/core/validation/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ..language.visitor import visit, ParallelVisitor, TypeInfoVisitor
1+
from ..language.visitor import ParallelVisitor, TypeInfoVisitor, visit
22
from ..type import GraphQLSchema
33
from ..utils.type_info import TypeInfo
44
from .context import ValidationContext

graphql/core/validation/context.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from ..language.ast import (FragmentDefinition, FragmentSpread,
22
OperationDefinition)
3-
from ..language.visitor import Visitor, visit
4-
from .visitor import TypeInfoVisitor
3+
from ..language.visitor import TypeInfoVisitor, Visitor, visit
54

65

76
class VariableUsage(object):

tests/core_validation/test_arguments_of_correct_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from graphql.core.language.location import SourceLocation
22
from graphql.core.validation.rules import ArgumentsOfCorrectType
3-
from utils import expect_fails_rule, expect_passes_rule
3+
from .utils import expect_fails_rule, expect_passes_rule
44

55

66
def bad_value(arg_name, type_name, value, line, column, errors=None):

tests/core_validation/test_default_values_of_correct_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from graphql.core.language.location import SourceLocation
22
from graphql.core.validation.rules import DefaultValuesOfCorrectType
3-
from utils import expect_fails_rule, expect_passes_rule
3+
from .utils import expect_fails_rule, expect_passes_rule
44

55

66
def default_for_non_null_arg(var_name, type_name, guess_type_name, line, column):

tests/core_validation/test_fields_on_correct_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from graphql.core.language.location import SourceLocation
22
from graphql.core.validation.rules import FieldsOnCorrectType
3-
from utils import expect_fails_rule, expect_passes_rule
3+
from .utils import expect_fails_rule, expect_passes_rule
44

55

66
def undefined_field(field, type, line, column):

tests/core_validation/test_fragments_on_composite_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from graphql.core.language.location import SourceLocation
22
from graphql.core.validation.rules import FragmentsOnCompositeTypes
3-
from utils import expect_fails_rule, expect_passes_rule
3+
from .utils import expect_fails_rule, expect_passes_rule
44

55

66
def fragment_on_non_composite_error(frag_name, type_name, line, column):

tests/core_validation/test_known_argument_names.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from graphql.core.language.location import SourceLocation
22
from graphql.core.validation.rules import KnownArgumentNames
3-
from utils import expect_fails_rule, expect_passes_rule
3+
from .utils import expect_fails_rule, expect_passes_rule
44

55

66
def unknown_arg(arg_name, field_name, type_name, line, column):

tests/core_validation/test_known_directives.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from graphql.core.language.location import SourceLocation
22
from graphql.core.validation.rules import KnownDirectives
3-
from utils import expect_fails_rule, expect_passes_rule
3+
from .utils import expect_fails_rule, expect_passes_rule
44

55

66
def unknown_directive(directive_name, line, column):

tests/core_validation/test_known_fragment_names.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from graphql.core.language.location import SourceLocation
22
from graphql.core.validation.rules import KnownFragmentNames
3-
from utils import expect_fails_rule, expect_passes_rule
3+
from .utils import expect_fails_rule, expect_passes_rule
44

55

66
def undefined_fragment(fragment_name, line, column):

tests/core_validation/test_known_type_names.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from graphql.core.language.location import SourceLocation
22
from graphql.core.validation.rules import KnownTypeNames
3-
from utils import expect_fails_rule, expect_passes_rule
3+
from .utils import expect_fails_rule, expect_passes_rule
44

55

66
def unknown_type(type_name, line, column):

0 commit comments

Comments
 (0)