Skip to content

Commit 24c72da

Browse files
fix: more linting
1 parent 383c7c6 commit 24c72da

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

devcycle_python_sdk/local_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def get_openfeature_provider(self) -> AbstractProvider:
6060
self._openfeature_provider = DevCycleProvider(self)
6161

6262
# Update platform data for OpenFeature
63-
self._platform_data.sdkPlatform = 'python-of'
63+
self._platform_data.sdkPlatform = "python-of"
6464
self.local_bucketing.set_platform_data(
6565
json.dumps(self._platform_data.to_json())
6666
)

devcycle_python_sdk/open_feature_provider/provider.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
from openfeature.provider.metadata import Metadata
1111
from openfeature.evaluation_context import EvaluationContext
1212
from openfeature.flag_evaluation import FlagResolutionDetails, Reason
13-
from openfeature.exception import ErrorCode, InvalidContextError, TypeMismatchError, GeneralError
13+
from openfeature.exception import (
14+
ErrorCode,
15+
InvalidContextError,
16+
TypeMismatchError,
17+
GeneralError,
18+
)
1419
from openfeature.hook import Hook
1520

1621
logger = logging.getLogger(__name__)
@@ -34,7 +39,9 @@ def initialize(self, evaluation_context: EvaluationContext) -> None:
3439
# Wait for the client to be initialized or timeout
3540
while not self.client.is_initialized():
3641
if time.time() - start_time > timeout:
37-
raise GeneralError(f"DevCycleProvider initialization timed out after {timeout} seconds")
42+
raise GeneralError(
43+
f"DevCycleProvider initialization timed out after {timeout} seconds"
44+
)
3845
time.sleep(0.1) # Sleep briefly to avoid busy waiting
3946

4047
if self.client.is_initialized():

0 commit comments

Comments
 (0)