mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 12:44:15 +03:00
fix so partial functions can be passed to field, solves issue #316
This commit is contained in:
parent
da3683028e
commit
774e9bf463
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user