We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47ccb94 commit a7d74acCopy full SHA for a7d74ac
optimizely/project_config.py
@@ -22,9 +22,9 @@
22
from .helpers import types
23
24
if version_info < (3, 8):
25
- from typing_extensions import Final, Literal
+ from typing_extensions import Final
26
else:
27
- from typing import Final, Literal # type: ignore
+ from typing import Final # type: ignore
28
29
if TYPE_CHECKING:
30
# prevent circular dependenacy by skipping import at runtime
@@ -41,8 +41,9 @@
41
42
EntityClass = TypeVar('EntityClass')
43
44
-Region = Literal['US', 'EU']
45
-
+class Region(str, enums):
+ US = 'US'
46
+ EU = 'EU'
47
48
class ProjectConfig:
49
""" Representation of the Optimizely project config. """
0 commit comments