From e1f8480b32817e5fc0b26dee3a757497b12e487a Mon Sep 17 00:00:00 2001 From: Eran Kampf Date: Mon, 30 Oct 2017 10:26:42 -0700 Subject: [PATCH] lint fix --- graphene/types/enum.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/graphene/types/enum.py b/graphene/types/enum.py index 9edda9bd..4e3f2ac2 100644 --- a/graphene/types/enum.py +++ b/graphene/types/enum.py @@ -48,7 +48,12 @@ class EnumMeta(SubclassWithMeta_Meta): def from_enum(cls, enum, description=None, deprecation_reason=None): # noqa: N805 description = description or enum.__doc__ - meta_class = type('Meta', (object,), {'enum': enum, 'description': description, 'deprecation_reason': deprecation_reason}) + meta_dict = { + 'enum': enum, + 'description': description, + 'deprecation_reason': deprecation_reason + } + meta_class = type('Meta', (object,), meta_dict) return type(meta_class.enum.__name__, (Enum,), {'Meta': meta_class})