From 79c7d070db664c864a74b7f4d2faa13cfb8472c8 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Sat, 21 Nov 2015 18:16:31 -0800 Subject: [PATCH] Fixed isort --- graphene/contrib/django/types.py | 1 + graphene/relay/types.py | 1 + setup.cfg | 3 +++ 3 files changed, 5 insertions(+) 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