mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-29 21:13:58 +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
|
# For static type checking with Mypy
|
||||||
MYPY = False
|
MYPY = False
|
||||||
if MYPY:
|
if MYPY:
|
||||||
from typing import Dict, Callable
|
from typing import Dict, Callable # NOQA
|
||||||
|
|
||||||
|
|
||||||
class InputObjectTypeOptions(BaseOptions):
|
class InputObjectTypeOptions(BaseOptions):
|
||||||
|
|
|
@ -7,7 +7,7 @@ from .utils import yank_fields_from_attrs
|
||||||
# For static type checking with Mypy
|
# For static type checking with Mypy
|
||||||
MYPY = False
|
MYPY = False
|
||||||
if MYPY:
|
if MYPY:
|
||||||
from typing import Dict
|
from typing import Dict # NOQA
|
||||||
|
|
||||||
|
|
||||||
class InterfaceOptions(BaseOptions):
|
class InterfaceOptions(BaseOptions):
|
||||||
|
|
|
@ -11,8 +11,8 @@ from ..utils.deprecated import warn_deprecation
|
||||||
# For static type checking with Mypy
|
# For static type checking with Mypy
|
||||||
MYPY = False
|
MYPY = False
|
||||||
if MYPY:
|
if MYPY:
|
||||||
from .argument import Argument
|
from .argument import Argument # NOQA
|
||||||
from typing import Dict, Type, Callable
|
from typing import Dict, Type, Callable # NOQA
|
||||||
|
|
||||||
|
|
||||||
class MutationOptions(ObjectTypeOptions):
|
class MutationOptions(ObjectTypeOptions):
|
||||||
|
|
|
@ -8,7 +8,7 @@ from .utils import yank_fields_from_attrs
|
||||||
# For static type checking with Mypy
|
# For static type checking with Mypy
|
||||||
MYPY = False
|
MYPY = False
|
||||||
if MYPY:
|
if MYPY:
|
||||||
from typing import Dict, Iterable, Type
|
from typing import Dict, Iterable, Type # NOQA
|
||||||
|
|
||||||
|
|
||||||
class ObjectTypeOptions(BaseOptions):
|
class ObjectTypeOptions(BaseOptions):
|
||||||
|
|
|
@ -5,8 +5,8 @@ from .unmountedtype import UnmountedType
|
||||||
# For static type checking with Mypy
|
# For static type checking with Mypy
|
||||||
MYPY = False
|
MYPY = False
|
||||||
if MYPY:
|
if MYPY:
|
||||||
from .objecttype import ObjectType
|
from .objecttype import ObjectType # NOQA
|
||||||
from typing import Iterable, Type
|
from typing import Iterable, Type # NOQA
|
||||||
|
|
||||||
|
|
||||||
class UnionOptions(BaseOptions):
|
class UnionOptions(BaseOptions):
|
||||||
|
@ -42,6 +42,6 @@ class Union(UnmountedType, BaseType):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def resolve_type(cls, instance, info):
|
def resolve_type(cls, instance, info):
|
||||||
from .objecttype import ObjectType
|
from .objecttype import ObjectType # NOQA
|
||||||
if isinstance(instance, ObjectType):
|
if isinstance(instance, ObjectType):
|
||||||
return type(instance)
|
return type(instance)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user