bpo-34282: Remove deprecated enum _convert method (GH-13823)
This commit is contained in:
parent
750767f7c0
commit
19a1e1eb86
|
@ -464,12 +464,6 @@ class EnumMeta(type):
|
|||
module_globals[name] = cls
|
||||
return cls
|
||||
|
||||
def _convert(cls, *args, **kwargs):
|
||||
import warnings
|
||||
warnings.warn("_convert is deprecated and will be removed in 3.9, use "
|
||||
"_convert_ instead.", DeprecationWarning, stacklevel=2)
|
||||
return cls._convert_(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def _get_mixins_(bases):
|
||||
"""Returns the type for creating enum members, and the first inherited
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Remove ``Enum._convert`` method, deprecated in 3.8.
|
Loading…
Reference in New Issue