diff --git a/graphene_django/converter.py b/graphene_django/converter.py index 8cea71b..b06d717 100644 --- a/graphene_django/converter.py +++ b/graphene_django/converter.py @@ -69,10 +69,6 @@ def convert_choices_to_named_enum_with_descriptions(name, choices): def description(self): return named_choices_descriptions[self.name] - if named_choices == []: - # Python 2.7 doesn't handle enums with lists with zero entries, but works okay with empty sets - named_choices = set() - return Enum(name, named_choices, type=EnumWithDescriptionsType) diff --git a/setup.py b/setup.py index e6615b8..640fb7f 100644 --- a/setup.py +++ b/setup.py @@ -19,8 +19,7 @@ tests_require = [ "coveralls", "mock", "pytz", - "django-filter<2;python_version<'3'", - "django-filter>=2;python_version>='3'", + "django-filter>=2", "pytest-django>=3.3.2", ] + rest_framework_require @@ -45,10 +44,7 @@ setup( "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Topic :: Software Development :: Libraries", - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: Implementation :: PyPy",