Skip to content

Commit a8184fd

Browse files
committed
Fixed flake8 issues
1 parent 29e1456 commit a8184fd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+73
-73
lines changed

graphql/backend/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from .decider import GraphQLDeciderBackend
1010
from .cache import GraphQLCachedBackend
1111

12-
if False:
12+
if False: # flake8: noqa
1313
from typing import Union
1414

1515
_default_backend = None

graphql/backend/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from abc import ABCMeta, abstractmethod
55
import six
66

7-
if False:
7+
if False: # flake8: noqa
88
from typing import Dict, Optional, Union, Callable
99
from ..language.ast import Document
1010
from ..type.schema import GraphQLSchema

graphql/backend/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from .base import GraphQLBackend
66

7-
if False:
7+
if False: # flake8: noqa
88
from typing import Any, Dict, Optional, Union, Tuple, Hashable
99
from .base import GraphQLDocument
1010

graphql/backend/compiled.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from six import string_types
22
from .base import GraphQLDocument
33

4-
if False:
4+
if False: # flake8: noqa
55
from ..type.schema import GraphQLSchema
66
from typing import Any, Optional, Dict, Callable, Union
77

graphql/backend/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from .base import GraphQLBackend, GraphQLDocument
1010

11-
if False:
11+
if False: # flake8: noqa
1212
from typing import Any, Optional, Union
1313
from .base import GraphQLDocument
1414
from ..language.ast import Document

graphql/backend/decider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from .base import GraphQLBackend, GraphQLDocument
22

3-
if False:
3+
if False: # flake8: noqa
44
from typing import List, Union, Any, Optional
55
from ..type.schema import GraphQLSchema
66

graphql/error/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import six
22
from ..language.location import get_location
33

4-
if False:
4+
if False: # flake8: noqa
55
from ..language.source import Source
66
from ..language.location import SourceLocation
77
from types import TracebackType

graphql/error/format_error.py

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

33
from .base import GraphQLError
44

5-
if False:
5+
if False: # flake8: noqa
66
from .base import GraphQLError
77
from .located_error import GraphQLLocatedError
88
from typing import Any, Dict, Union

graphql/error/located_error.py

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

33
from .base import GraphQLError
44

5-
if False:
5+
if False: # flake8: noqa
66
from ..language.ast import Field
77
from typing import List, Union
88

graphql/error/syntax_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from ..language.location import get_location
22
from .base import GraphQLError
33

4-
if False:
4+
if False: # flake8: noqa
55
from ..language.source import Source
66
from ..language.location import SourceLocation
77

graphql/error/tests/test_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from graphql.language.parser import parse
66
from graphql.type import GraphQLField, GraphQLObjectType, GraphQLSchema, GraphQLString
77

8-
if False:
8+
if False: # flake8: noqa
99
from graphql.execution.base import ResolveInfo
1010
from typing import Any
1111
from typing import Optional

graphql/execution/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
)
1313
from ..error.format_error import format_error as default_format_error
1414

15-
if False:
15+
if False: # flake8: noqa
1616
from typing import Any, Optional, Dict, List, Union
1717
from ..language.ast import Field, OperationDefinition
1818
from ..type.definition import GraphQLList, GraphQLObjectType, GraphQLScalarType

graphql/execution/executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from .executors.sync import SyncExecutor
3636
from .middleware import MiddlewareManager
3737

38-
if False:
38+
if False: # flake8: noqa
3939
from typing import Any, Optional, Union, Dict, List, Callable
4040
from rx import Observable
4141
from ..type.schema import GraphQLSchema

graphql/execution/executors/asyncio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from promise import Promise
66

7-
if False:
7+
if False: # flake8: noqa
88
from asyncio.unix_events import _UnixSelectorEventLoop
99
from typing import Optional, Any, Callable
1010

graphql/execution/executors/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if False:
1+
if False: # flake8: noqa
22
from typing import Any, Callable
33

44

graphql/execution/executors/thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from promise import Promise
55
from .utils import process
66

7-
if False:
7+
if False: # flake8: noqa
88
from typing import Any, Callable
99

1010

graphql/execution/executors/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from sys import exc_info
22

3-
if False:
3+
if False: # flake8: noqa
44
from ..base import ResolveInfo
55
from promise import Promise
66
from typing import Callable, Dict, Tuple, Union

graphql/execution/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from promise import Promise
66

7-
if False:
7+
if False: # flake8: noqa
88
from .base import ResolveInfo
99
from typing import Any, Callable, Iterator, Tuple, Union, List, Dict
1010

graphql/execution/tests/test_nonnull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from .utils import rejected, resolved
1414

15-
if False:
15+
if False: # flake8: noqa
1616
from promise import Promise
1717
from typing import Any, Optional, Dict, Tuple, Union
1818

graphql/execution/tests/test_subscribe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
subscribe,
1616
)
1717

18-
if False:
18+
if False: # flake8: noqa
1919
from graphql.execution.base import ResolveInfo
2020
from rx import Observable
2121
from typing import Optional, Union, Any, Callable, Tuple

graphql/execution/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from ..utils.type_from_ast import type_from_ast
1616
from .values import get_argument_values, get_variable_values
1717

18-
if False:
18+
if False: # flake8: noqa
1919
from ..type.definition import GraphQLObjectType, GraphQLField
2020
from ..type.schema import GraphQLSchema
2121
from ..language.ast import (

graphql/execution/values.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from ..utils.type_from_ast import type_from_ast
1919
from ..utils.value_from_ast import value_from_ast
2020

21-
if False:
21+
if False: # flake8: noqa
2222
from ..language.ast import VariableDefinition, Argument
2323
from ..type.schema import GraphQLSchema
2424
from ..type.definition import GraphQLArgument

graphql/graphql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from promise import promisify
55

6-
if False:
6+
if False: # flake8: noqa
77
from rx import Observable
88
from typing import Any, Union, Optional
99
from .language.ast import Document

graphql/language/ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if False:
1+
if False: # flake8: noqa
22
from .parser import Loc
33
from typing import Any, Optional, Union, List, Tuple, Iterable
44

graphql/language/lexer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from ..error import GraphQLSyntaxError
66

7-
if False:
7+
if False: # flake8: noqa
88
from typing import Optional
99
from .source import Source
1010

graphql/language/location.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if False:
1+
if False: # flake8: noqa
22
from .source import Source
33
from typing import Any
44

graphql/language/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from .lexer import Lexer, TokenKind, get_token_desc, get_token_kind_desc
66
from .source import Source
77

8-
if False:
8+
if False: # flake8: noqa
99
from typing import Dict, Union, Any, Optional, Callable, List
1010
from ..error.syntax_error import GraphQLSyntaxError
1111
from .source import Source

graphql/language/printer.py

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

33
from .visitor import Visitor, visit
44

5-
if False:
5+
if False: # flake8: noqa
66
from typing import Any, List, Optional, Union
77
from graphql.language.ast import (
88
Node,

graphql/language/visitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from . import ast
66
from .visitor_meta import QUERY_DOCUMENT_KEYS, VisitorMeta
77

8-
if False:
8+
if False: # flake8: noqa
99
from typing import Any, List, Optional, Union, Tuple, Dict
1010
from ..utils.type_info import TypeInfo
1111
from ..validation.validation import UsageVisitor

graphql/pyutils/cached_property.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if False:
1+
if False: # flake8: noqa
22
from typing import Any
33

44

graphql/pyutils/contain_subset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if False:
1+
if False: # flake8: noqa
22
from typing import Any, Dict
33

44
obj = (dict, list, tuple)

graphql/pyutils/default_ordered_dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import copy
22
from collections import OrderedDict
33

4-
if False:
4+
if False: # flake8: noqa
55
from typing import Any, List
66

77

graphql/pyutils/pair_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if False:
1+
if False: # flake8: noqa
22
from typing import Dict, Any
33

44

graphql/type/definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from ..utils.assert_valid_name import assert_valid_name
88
from ..utils.undefined import Undefined
99

10-
if False:
10+
if False: # flake8: noqa
1111
from typing import List, Dict, Any, Callable, Optional, Union, Type
1212

1313

graphql/type/introspection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from .directives import DirectiveLocation
1919
from .scalars import GraphQLBoolean, GraphQLString
2020

21-
if False:
21+
if False: # flake8: noqa
2222
from ..execution.base import ResolveInfo
2323
from typing import Union, List, Optional, Any
2424

graphql/type/scalars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from ..language.ast import BooleanValue, FloatValue, IntValue, StringValue
44
from .definition import GraphQLScalarType
55

6-
if False:
6+
if False: # flake8: noqa
77
from typing import Any, Optional, Union
88

99
# As per the GraphQL Spec, Integers are only treated as valid when a valid

graphql/type/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from .introspection import IntrospectionSchema
66
from .typemap import GraphQLTypeMap
77

8-
if False:
8+
if False: # flake8: noqa
99
from .definition import GraphQLInterfaceType, GraphQLUnionType, GraphQLType
1010
from typing import Dict, Union, Any, List, Optional
1111

graphql/type/typemap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
is_output_type,
1616
)
1717

18-
if False:
18+
if False: # flake8: noqa
1919
from typing import Any, List, Optional, Union
2020

2121

graphql/utils/ast_to_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from ..language.ast import Node
22
from ..language.parser import Loc
33

4-
if False:
4+
if False: # flake8: noqa
55
from typing import Any
66

77

graphql/utils/concat_ast.py

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

33
from ..language.ast import Document
44

5-
if False:
5+
if False: # flake8: noqa
66
from typing import Iterable
77

88

graphql/utils/get_field_def.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
TypeNameMetaFieldDef,
66
)
77

8-
if False:
8+
if False: # flake8: noqa
99
from ..language.ast import Field
1010
from ..type.definition import GraphQLField, GraphQLInterfaceType, GraphQLObjectType
1111
from ..type.schema import GraphQLSchema

graphql/utils/get_operation_ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from ..language import ast
22

3-
if False:
3+
if False: # flake8: noqa
44
from ..language.ast import Document, OperationDefinition
55
from typing import Optional
66

graphql/utils/is_valid_literal_value.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
GraphQLScalarType,
99
)
1010

11-
if False:
11+
if False: # flake8: noqa
1212
from ..language.ast import ObjectValue, StringValue
1313
from ..type.definition import GraphQLInputObjectType, GraphQLScalarType
1414
from typing import Union, Any, List

graphql/utils/is_valid_value.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
GraphQLScalarType,
1616
)
1717

18-
if False:
18+
if False: # flake8: noqa
1919
from typing import Any, List
2020

2121
_empty_list = [] # type: List

graphql/utils/quoted_or_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import functools
22

3-
if False:
3+
if False: # flake8: noqa
44
from typing import List
55

66

graphql/utils/schema_printer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .ast_from_value import ast_from_value
1212

1313

14-
if False:
14+
if False: # flake8: noqa
1515
from ..type.definition import (
1616
GraphQLArgument,
1717
GraphQLType,

0 commit comments

Comments
 (0)