We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c96d02 commit 3823723Copy full SHA for 3823723
optimizely/helpers/validator.py
@@ -193,7 +193,7 @@ def is_user_profile_valid(user_profile: dict[str, Any]) -> bool:
193
if not user_profile:
194
return False
195
196
- if not type(user_profile) is dict:
+ if type(user_profile) is not dict:
197
198
199
if UserProfile.USER_ID_KEY not in user_profile:
@@ -203,7 +203,7 @@ def is_user_profile_valid(user_profile: dict[str, Any]) -> bool:
203
204
205
experiment_bucket_map = user_profile.get(UserProfile.EXPERIMENT_BUCKET_MAP_KEY)
206
- if not type(experiment_bucket_map) is dict:
+ if type(experiment_bucket_map) is not dict:
207
208
209
for decision in experiment_bucket_map.values():
0 commit comments