diff --git a/graphene/contrib/django/types.py b/graphene/contrib/django/types.py index 55b76fa7..b5097c72 100644 --- a/graphene/contrib/django/types.py +++ b/graphene/contrib/django/types.py @@ -72,6 +72,7 @@ class DjangoInterface(six.with_metaclass( class DjangoConnection(Connection): + @classmethod def from_list(cls, iterable, *args, **kwargs): iterable = maybe_queryset(iterable) diff --git a/graphene/relay/types.py b/graphene/relay/types.py index 3969a09e..9fa673ef 100644 --- a/graphene/relay/types.py +++ b/graphene/relay/types.py @@ -2,6 +2,7 @@ import inspect import warnings from collections import Iterable from functools import wraps + from graphql_relay.connection.arrayconnection import connection_from_list from graphql_relay.node.node import to_global_id diff --git a/setup.cfg b/setup.cfg index 11382a78..21db934b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,3 +4,6 @@ max-line-length = 120 [coverage:run] omit = core/ntypes/tests/* + +[isort] +known_first_party=graphene