Skip to content

Commit 2f6ddd7

Browse files
committed
Added comments for if False checks
1 parent 80836e4 commit 2f6ddd7

Some content is hidden

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

74 files changed

+75
-1
lines changed

graphql/backend/__init__.py

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

12+
# Necessary for static type checking
1213
if False: # flake8: noqa
1314
from typing import Union
1415

graphql/backend/base.py

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

7+
# Necessary for static type checking
78
if False: # flake8: noqa
89
from typing import Dict, Optional, Union, Callable
910
from ..language.ast import Document

graphql/backend/cache.py

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

55
from .base import GraphQLBackend
66

7+
# Necessary for static type checking
78
if False: # flake8: noqa
89
from typing import Any, Dict, Optional, Union, Tuple, Hashable
910
from .base import GraphQLDocument

graphql/backend/compiled.py

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

4+
# Necessary for static type checking
45
if False: # flake8: noqa
56
from ..type.schema import GraphQLSchema
67
from typing import Any, Optional, Dict, Callable, Union

graphql/backend/core.py

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

99
from .base import GraphQLBackend, GraphQLDocument
1010

11+
# Necessary for static type checking
1112
if False: # flake8: noqa
1213
from typing import Any, Optional, Union
1314
from .base import GraphQLDocument

graphql/backend/decider.py

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

3+
# Necessary for static type checking
34
if False: # flake8: noqa
45
from typing import List, Union, Any, Optional
56
from ..type.schema import GraphQLSchema

graphql/error/base.py

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

4+
# Necessary for static type checking
45
if False: # flake8: noqa
56
from ..language.source import Source
67
from ..language.location import SourceLocation

graphql/error/format_error.py

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

33
from .base import GraphQLError
44

5+
# Necessary for static type checking
56
if False: # flake8: noqa
67
from .base import GraphQLError
78
from .located_error import GraphQLLocatedError

graphql/error/located_error.py

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

33
from .base import GraphQLError
44

5+
# Necessary for static type checking
56
if False: # flake8: noqa
67
from ..language.ast import Field
78
from typing import List, Union

graphql/error/syntax_error.py

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

4+
# Necessary for static type checking
45
if False: # flake8: noqa
56
from ..language.source import Source
67
from ..language.location import SourceLocation

0 commit comments

Comments
 (0)