Skip to content

Commit 2aea5b2

Browse files
committed
Fix the cast error
1 parent f7b71e7 commit 2aea5b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optimizely/bucketer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def bucket(
138138
if variation_id:
139139
variation = project_config.get_variation_from_id_by_experiment_id(experiment_id, variation_id)
140140
# Cast is safe here because experiments always use Variation entities, not VariationDict
141-
return cast(Optional[Variation], variation), decide_reasons
141+
return cast('Optional[Variation]', variation), decide_reasons
142142

143143
# No variation found - log message for empty traffic range
144144
message = 'Bucketed into an empty traffic range. Returning nil.'

0 commit comments

Comments
 (0)