innolitics / n2y

Notion to YAML (and Markdown)
23 stars 1 forks source link

StrEnum not defined for Python versions < 3.11 #188

Closed notmatthancock closed 4 months ago

notmatthancock commented 4 months ago

The n2y.errors module imports StrEnum, but this class is not available until 3.11. We should define StrEnum as suggested here: https://docs.python.org/3.10/library/enum.html#others if an import error is encountered.