Skip to content

Commit 6d1f73d

Browse files
linting fix
1 parent f74bc8c commit 6d1f73d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

optimizely/optimizely.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
from .project_config import ProjectConfig
4747
from .cmab.cmab_client import DefaultCmabClient, CmabRetryConfig
4848
from .cmab.cmab_service import DefaultCmabService, CmabCacheValue
49-
from .odp.lru_cache import LRUCache
5049

5150
if TYPE_CHECKING:
5251
# prevent circular dependency by skipping import at runtime
@@ -57,6 +56,7 @@
5756
DEFAULT_CMAB_CACHE_TIMEOUT = 30 * 60 * 1000 # 30 minutes in milliseconds
5857
DEFAULT_CMAB_CACHE_SIZE = 1000
5958

59+
6060
class Optimizely:
6161
""" Class encapsulating all SDK functionality. """
6262

@@ -177,13 +177,11 @@ def __init__(
177177
self.event_builder = event_builder.EventBuilder()
178178

179179
# Initialize CMAB components
180-
181180
self.cmab_client = DefaultCmabClient(
182181
retry_config=CmabRetryConfig(),
183182
logger=logger
184183
)
185-
self.cmab_cache: LRUCache[str, CmabCacheValue] = LRUCache(DEFAULT_CMAB_CACHE_SIZE,
186-
DEFAULT_CMAB_CACHE_TIMEOUT)
184+
self.cmab_cache: LRUCache[str, CmabCacheValue] = LRUCache(DEFAULT_CMAB_CACHE_SIZE, DEFAULT_CMAB_CACHE_TIMEOUT)
187185
self.cmab_service = DefaultCmabService(
188186
cmab_cache=self.cmab_cache,
189187
cmab_client=self.cmab_client,

optimizely/optimizely_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,4 @@ def custom_instance(
177177
return Optimizely(
178178
datafile, event_dispatcher, logger, error_handler, skip_json_validation, user_profile_service,
179179
sdk_key, config_manager, notification_center, event_processor, settings=settings
180-
)
180+
)

0 commit comments

Comments
 (0)