Skip to content

Commit 7b06e01

Browse files
committed
Fixed ClassTypes when returned as instance. Fixed #105
1 parent eb9286c commit 7b06e01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphene/core/schema.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ def __getattr__(self, name):
5252
def T(self, _type):
5353
if not _type:
5454
return
55+
if isinstance(_type, ClassType):
56+
_type = type(_type)
5557
is_classtype = inspect.isclass(_type) and issubclass(_type, ClassType)
5658
is_instancetype = isinstance(_type, InstanceType)
5759
if is_classtype or is_instancetype:

0 commit comments

Comments
 (0)