From aa84d6d8db0d5d4891528a6f8a55660f0be22786 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Sat, 17 Sep 2016 12:05:05 -0700 Subject: [PATCH] Improved objecttype typemap duplication --- graphene/types/typemap.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/graphene/types/typemap.py b/graphene/types/typemap.py index 1547c893..af193a9b 100644 --- a/graphene/types/typemap.py +++ b/graphene/types/typemap.py @@ -119,6 +119,9 @@ class TypeMap(GraphQLTypeMap): def construct_objecttype(self, map, type): from .definitions import GrapheneObjectType if type._meta.name in map: + _type = map[type._meta.name] + if is_graphene_type(_type): + assert _type.graphene_type == type return map map[type._meta.name] = GrapheneObjectType( graphene_type=type,