diff --git a/jac/jaclang/compiler/constant.py b/jac/jaclang/compiler/constant.py index b5fd1b6f47..8bff46c229 100644 --- a/jac/jaclang/compiler/constant.py +++ b/jac/jaclang/compiler/constant.py @@ -1,6 +1,7 @@ """Constants across the project.""" -from enum import Enum, IntEnum, IntFlag, StrEnum +from enum import Enum, IntEnum, IntFlag +from backports.strenum import StrEnum class SymbolType(Enum): diff --git a/jac/pyproject.toml b/jac/pyproject.toml index ba56fc2472..d9b0ed691c 100644 --- a/jac/pyproject.toml +++ b/jac/pyproject.toml @@ -20,7 +20,8 @@ homepage = "https://jaseci.org" documentation = "https://jac-lang.org" [tool.poetry.dependencies] -python = "^3.11.0" +python = "^3.10.12" +backports-strenum = { version = "^1.3.1", markers = "python_version < '3.11'" } # Below are vendored in using poetry export and pip download # lark = "^1.1.9" # mypy = "^1.10.0"