Skip to content

Commit 155ab25

Browse files
committed
Add enum
1 parent 17c9280 commit 155ab25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

optimizely/project_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import json
1515
from typing import TYPE_CHECKING, Optional, Type, TypeVar, cast, Any, Iterable, List
1616
from sys import version_info
17+
from enum import Enum
1718

1819
from . import entities
1920
from . import exceptions
@@ -42,7 +43,7 @@
4243
EntityClass = TypeVar('EntityClass')
4344

4445

45-
class Region:
46+
class Region(str, Enum):
4647
US = 'US'
4748
EU = 'EU'
4849

0 commit comments

Comments
 (0)