python: remove aenum in favor of stdlib's enum (#16691)

The aenum dependency didn't provide any specific improvements over the
stdlib's enum module.
aenum also doesn't provide typing information at the moment.

This removes one dependency and will help for completing the typing of
the generated client.
This commit is contained in:
Jonathan Ballet
2023-10-01 15:22:42 +02:00
committed by GitHub
parent 56bc383dc1
commit 03781d3a93
33 changed files with 40 additions and 33 deletions

View File

@@ -13,10 +13,11 @@
""" # noqa: E501
from __future__ import annotations
import json
import pprint
import re # noqa: F401
from aenum import Enum, no_arg
from enum import Enum

View File

@@ -15,7 +15,6 @@ python = "^3.7"
urllib3 = ">= 1.25.3"
python-dateutil = ">=2.8.2"
pydantic = ">=2"
aenum = ">=3.1.11"
typing-extensions = ">=4.7.1"
[tool.poetry.dev-dependencies]

View File

@@ -2,5 +2,4 @@ python_dateutil >= 2.5.3
setuptools >= 21.0.0
urllib3 >= 1.25.3, < 2.1.0
pydantic >= 2
aenum >= 3.1.11
typing-extensions >= 4.7.1

View File

@@ -28,7 +28,6 @@ REQUIRES = [
"urllib3 >= 1.25.3, < 2.1.0",
"python-dateutil",
"pydantic >= 2",
"aenum",
"typing-extensions >= 4.7.1",
]