Skip to content

Commit 3823723

Browse files
ruff fix
1 parent 5c96d02 commit 3823723

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

optimizely/helpers/validator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def is_user_profile_valid(user_profile: dict[str, Any]) -> bool:
193193
if not user_profile:
194194
return False
195195

196-
if not type(user_profile) is dict:
196+
if type(user_profile) is not dict:
197197
return False
198198

199199
if UserProfile.USER_ID_KEY not in user_profile:
@@ -203,7 +203,7 @@ def is_user_profile_valid(user_profile: dict[str, Any]) -> bool:
203203
return False
204204

205205
experiment_bucket_map = user_profile.get(UserProfile.EXPERIMENT_BUCKET_MAP_KEY)
206-
if not type(experiment_bucket_map) is dict:
206+
if type(experiment_bucket_map) is not dict:
207207
return False
208208

209209
for decision in experiment_bucket_map.values():

0 commit comments

Comments
 (0)