mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-26 03:23:55 +03:00
Fixed Flake8 issues
This commit is contained in:
parent
4585469425
commit
7eb3ab5747
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user