Skip to content

Commit 7e5285d

Browse files
authored
Merge pull request #381 from riddlesio/master
fix so partial functions can be passed to field, solves issue #316
2 parents da36830 + 774e9bf commit 7e5285d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene/types/field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(self, type, args=None, resolver=None, source=None,
6060

6161
@property
6262
def type(self):
63-
if inspect.isfunction(self._type):
63+
if inspect.isfunction(self._type) or type(self._type) is partial:
6464
return self._type()
6565
return self._type
6666

0 commit comments

Comments
 (0)