Merge pull request #590 from graphql-python/fix-tests

Fix lint error
This commit is contained in:
Mel van Londen 2019-03-09 22:09:13 -08:00 committed by GitHub
commit 87592392de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,7 @@
import six
from collections import OrderedDict from collections import OrderedDict
from django.db.models import Model
from django.utils.functional import SimpleLazyObject from django.utils.functional import SimpleLazyObject
from graphene import Field from graphene import Field
from graphene.relay import Connection, Node from graphene.relay import Connection, Node
@ -11,6 +13,10 @@ from .registry import Registry, get_global_registry
from .utils import DJANGO_FILTER_INSTALLED, get_model_fields, is_valid_django_model from .utils import DJANGO_FILTER_INSTALLED, get_model_fields, is_valid_django_model
if six.PY3:
from typing import Type
def construct_fields(model, registry, only_fields, exclude_fields): def construct_fields(model, registry, only_fields, exclude_fields):
_model_fields = get_model_fields(model) _model_fields = get_model_fields(model)