Fixed Flake8 issues

This commit is contained in:
Syrus Akbary 2017-08-07 20:59:48 -07:00
parent 4585469425
commit 7eb3ab5747
5 changed files with 8 additions and 8 deletions

View File

@ -9,7 +9,7 @@ from .utils import yank_fields_from_attrs
# For static type checking with Mypy
MYPY = False
if MYPY:
from typing import Dict, Callable
from typing import Dict, Callable # NOQA
class InputObjectTypeOptions(BaseOptions):

View File

@ -7,7 +7,7 @@ from .utils import yank_fields_from_attrs
# For static type checking with Mypy
MYPY = False
if MYPY:
from typing import Dict
from typing import Dict # NOQA
class InterfaceOptions(BaseOptions):

View File

@ -11,8 +11,8 @@ from ..utils.deprecated import warn_deprecation
# For static type checking with Mypy
MYPY = False
if MYPY:
from .argument import Argument
from typing import Dict, Type, Callable
from .argument import Argument # NOQA
from typing import Dict, Type, Callable # NOQA
class MutationOptions(ObjectTypeOptions):

View File

@ -8,7 +8,7 @@ from .utils import yank_fields_from_attrs
# For static type checking with Mypy
MYPY = False
if MYPY:
from typing import Dict, Iterable, Type
from typing import Dict, Iterable, Type # NOQA
class ObjectTypeOptions(BaseOptions):

View File

@ -5,8 +5,8 @@ from .unmountedtype import UnmountedType
# For static type checking with Mypy
MYPY = False
if MYPY:
from .objecttype import ObjectType
from typing import Iterable, Type
from .objecttype import ObjectType # NOQA
from typing import Iterable, Type # NOQA
class UnionOptions(BaseOptions):
@ -42,6 +42,6 @@ class Union(UnmountedType, BaseType):
@classmethod
def resolve_type(cls, instance, info):
from .objecttype import ObjectType
from .objecttype import ObjectType # NOQA
if isinstance(instance, ObjectType):
return type(instance)