From 9d5e428cd24f1d570ac3d42db4097908e37a86b8 Mon Sep 17 00:00:00 2001 From: Markus Padourek Date: Fri, 19 Aug 2016 15:37:21 +0100 Subject: [PATCH] Fixed linting --- graphene/relay/fields.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/graphene/relay/fields.py b/graphene/relay/fields.py index eefc3a0e..2942a3a9 100644 --- a/graphene/relay/fields.py +++ b/graphene/relay/fields.py @@ -9,9 +9,11 @@ from ..core.types.scalars import ID, Int, String from ..utils.wrap_resolver_function import has_context, with_context from .connection import Connection, Edge + def _is_thenable(obj): return callable(getattr(obj, "then", None)) + class ConnectionField(Field): def __init__(self, type, resolver=None, description='', @@ -29,7 +31,7 @@ class ConnectionField(Field): **kwargs) self.connection_type = connection_type or Connection self.edge_type = edge_type or Edge - + def _get_connection_type(self, connection_type, args, context, info, resolved): if isinstance(resolved, self.connection_type): return resolved