From b17f081906c60bf5169197ee2137b0de705f99a5 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Mon, 6 Jun 2016 00:05:00 -0700 Subject: [PATCH] Improved enum attrs --- graphene/types/enum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene/types/enum.py b/graphene/types/enum.py index 4f49be63..c6c2492a 100644 --- a/graphene/types/enum.py +++ b/graphene/types/enum.py @@ -54,7 +54,7 @@ class EnumTypeMeta(ClassTypeMeta): if not cls._meta.enum: cls._meta.enum = type(cls.__name__, (PyEnum,), attrs) - return super(EnumTypeMeta, cls).construct(bases, cls._meta.enum.__members__) + return super(EnumTypeMeta, cls).construct(bases, dict(attrs, **cls._meta.enum.__members__)) def __call__(cls, *args, **kwargs): if cls._meta.abstract: