Skip to content

Commit

Permalink
cleanup variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann committed Jun 1, 2024
1 parent d38dc59 commit 3f71be7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rapidfuzz/process_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,8 @@ def cdist(
proc_choices = [x if is_none(x) else processor(x) for x in choices]

if queries is choices and _is_symmetric(scorer, scorer_kwargs):
for i, query in enumerate(proc_choices):
score = scorer(query, query, score_cutoff=score_cutoff, **scorer_kwargs) * score_multiplier
for i, proc_query in enumerate(proc_choices):
score = scorer(proc_query, proc_query, score_cutoff=score_cutoff, **scorer_kwargs) * score_multiplier

if issubclass(dtype, numbers.Integral):
score = round(score)
Expand All @@ -538,7 +538,7 @@ def cdist(
for j in range(i + 1, len(proc_choices)):
score = (
scorer(
query,
proc_query,
proc_choices[j],
score_cutoff=score_cutoff,
**scorer_kwargs,
Expand Down

0 comments on commit 3f71be7

Please sign in to comment.