Skip to content

Commit e24a34e

Browse files
committed
Fix lint issues
1 parent 1d61988 commit e24a34e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

optimizely/event/event_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def create_log_event(
107107
region_str = 'US' # Default to US
108108
else:
109109
region_str = str(region)
110-
110+
111111
region_key = region_str.upper()
112112
endpoint = cls.EVENT_ENDPOINTS.get(region_key, cls.EVENT_ENDPOINTS['US'])
113113

optimizely/event/payload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(
3333
client_version: str,
3434
anonymize_ip: bool,
3535
enrich_decisions: bool = True,
36-
visitors: Optional[list[Visitor]] = None
36+
visitors: Optional[list[Visitor]] = None,
3737
):
3838
self.account_id = account_id
3939
self.project_id = project_id

optimizely/event_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def create_impression_event(
271271

272272
params[self.EventParams.USERS][0][self.EventParams.SNAPSHOTS].append(impression_params)
273273

274-
region = params.get('region', 'US')
274+
region = params.get('region', 'US')
275275
events_url = self.EVENTS_URLS.get(str(region), self.EVENTS_URLS['US'])
276276

277277
return Event(events_url, params, http_verb=self.HTTP_VERB, headers=self.HTTP_HEADERS)

tests/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ def setUp(self, config_dict='config_dict'):
12741274
}
12751275
],
12761276
'revision': '101',
1277-
'sdkKey': 'segments-test',
1277+
'sdkKey': 'segments-test'
12781278
}
12791279

12801280
config = getattr(self, config_dict)

tests/test_optimizely.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def test_activate_with_eu_hosting(self):
410410
'anonymize_ip': False,
411411
'region': 'EU' # Setting the region to EU
412412
}
413-
413+
414414
with mock.patch(
415415
'optimizely.decision_service.DecisionService.get_variation',
416416
return_value=variation_result,

0 commit comments

Comments
 (0)