add temporary fix for enum description

This commit is contained in:
Firas Kafri 2023-05-04 13:34:30 +03:00 committed by Ülgen Sarıkavak
parent aa0650aeb6
commit 846422fccd

View File

@ -96,7 +96,12 @@ def convert_choices_to_named_enum_with_descriptions(name, choices):
def description(self):
return str(named_choices_descriptions[self.name])
return_type = Enum(name, list(named_choices), type=EnumWithDescriptionsType)
return_type = Enum(
name,
list(named_choices),
type=EnumWithDescriptionsType,
description="An enumeration.", # Temporary fix until https://github.com/graphql-python/graphene/pull/1502 is merged
)
return return_type