From 774e9bf4639ca459d0a12a10e090d9ab671b6459 Mon Sep 17 00:00:00 2001 From: Jim van Eeden Date: Fri, 2 Dec 2016 15:35:43 +0100 Subject: [PATCH] fix so partial functions can be passed to field, solves issue #316 --- graphene/types/field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene/types/field.py b/graphene/types/field.py index 3b9347c0..952189f8 100644 --- a/graphene/types/field.py +++ b/graphene/types/field.py @@ -60,7 +60,7 @@ class Field(OrderedType): @property def type(self): - if inspect.isfunction(self._type): + if inspect.isfunction(self._type) or type(self._type) is partial: return self._type() return self._type