There is no need to install the strenum package if the user of the library uses Python 3.11 or later. Therefore, I would like to add an additional restriction on this dependency and not install it on fresh versions of Python.
Additional context
The only place where strenum package is used is here
import sys
if sys.version_info >= (3, 11):
from enum import StrEnum
else:
from strenum import StrEnum
StrEnumadded in standard enum library since Python 3.11.
Chore
Describe the chore
There is no need to install the
strenum
package if the user of the library uses Python 3.11 or later. Therefore, I would like to add an additional restriction on this dependency and not install it on fresh versions of Python.Additional context
The only place where
strenum
package is used is hereStrEnum
added in standardenum
library since Python 3.11.