Skip to content

Commit

Permalink
Fixed Flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Aug 8, 2017
1 parent 4585469 commit 7eb3ab5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion graphene/types/inputobjecttype.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# For static type checking with Mypy
MYPY = False
if MYPY:
from typing import Dict, Callable
from typing import Dict, Callable # NOQA


class InputObjectTypeOptions(BaseOptions):
Expand Down
2 changes: 1 addition & 1 deletion graphene/types/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# For static type checking with Mypy
MYPY = False
if MYPY:
from typing import Dict
from typing import Dict # NOQA


class InterfaceOptions(BaseOptions):
Expand Down
4 changes: 2 additions & 2 deletions graphene/types/mutation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
# 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):
Expand Down
2 changes: 1 addition & 1 deletion graphene/types/objecttype.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# 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):
Expand Down
6 changes: 3 additions & 3 deletions graphene/types/union.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# 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):
Expand Down Expand Up @@ -42,6 +42,6 @@ def get_type(cls):

@classmethod
def resolve_type(cls, instance, info):
from .objecttype import ObjectType
from .objecttype import ObjectType # NOQA
if isinstance(instance, ObjectType):
return type(instance)

0 comments on commit 7eb3ab5

Please sign in to comment.