mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 12:16:58 +03:00
Merge pull request #381 from riddlesio/master
fix so partial functions can be passed to field, solves issue #316
This commit is contained in:
commit
7e5285d859
|
@ -60,7 +60,7 @@ class Field(OrderedType):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def type(self):
|
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()
|
||||||
return self._type
|
return self._type
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user