From 7eb3ab574777a4205ef998f3b7fccddae69f9c38 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Mon, 7 Aug 2017 20:59:48 -0700 Subject: [PATCH] Fixed Flake8 issues --- graphene/types/inputobjecttype.py | 2 +- graphene/types/interface.py | 2 +- graphene/types/mutation.py | 4 ++-- graphene/types/objecttype.py | 2 +- graphene/types/union.py | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/graphene/types/inputobjecttype.py b/graphene/types/inputobjecttype.py index 28dc220b..38173c79 100644 --- a/graphene/types/inputobjecttype.py +++ b/graphene/types/inputobjecttype.py @@ -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): diff --git a/graphene/types/interface.py b/graphene/types/interface.py index b806de33..dbc3b476 100644 --- a/graphene/types/interface.py +++ b/graphene/types/interface.py @@ -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): diff --git a/graphene/types/mutation.py b/graphene/types/mutation.py index 6a7a7bbb..25794d47 100644 --- a/graphene/types/mutation.py +++ b/graphene/types/mutation.py @@ -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): diff --git a/graphene/types/objecttype.py b/graphene/types/objecttype.py index 53e00902..fe234b09 100644 --- a/graphene/types/objecttype.py +++ b/graphene/types/objecttype.py @@ -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): diff --git a/graphene/types/union.py b/graphene/types/union.py index ae6af8b4..c5925e88 100644 --- a/graphene/types/union.py +++ b/graphene/types/union.py @@ -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)