Skip to content

Commit 8759239

Browse files
authored
Merge pull request #590 from graphql-python/fix-tests
Fix lint error
2 parents a7c1d01 + ce8fa7f commit 8759239

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

graphene_django/types.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import six
12
from collections import OrderedDict
23

4+
from django.db.models import Model
35
from django.utils.functional import SimpleLazyObject
46
from graphene import Field
57
from graphene.relay import Connection, Node
@@ -11,6 +13,10 @@
1113
from .utils import DJANGO_FILTER_INSTALLED, get_model_fields, is_valid_django_model
1214

1315

16+
if six.PY3:
17+
from typing import Type
18+
19+
1420
def construct_fields(model, registry, only_fields, exclude_fields):
1521
_model_fields = get_model_fields(model)
1622

0 commit comments

Comments
 (0)