mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 12:16:58 +03:00
Fixed ClassTypes when returned as instance. Fixed #105
This commit is contained in:
parent
eb9286cf6a
commit
7b06e01cb3
|
@ -52,6 +52,8 @@ class Schema(object):
|
|||
def T(self, _type):
|
||||
if not _type:
|
||||
return
|
||||
if isinstance(_type, ClassType):
|
||||
_type = type(_type)
|
||||
is_classtype = inspect.isclass(_type) and issubclass(_type, ClassType)
|
||||
is_instancetype = isinstance(_type, InstanceType)
|
||||
if is_classtype or is_instancetype:
|
||||
|
|
Loading…
Reference in New Issue
Block a user