Skip to content

Commit af304d9

Browse files
committed
Remove a redundant hash in calc_label
1 parent 43a65dc commit af304d9

File tree

1 file changed

+2
-2
lines changed
  • hypothesis-python/src/hypothesis/strategies/_internal

1 file changed

+2
-2
lines changed

hypothesis-python/src/hypothesis/strategies/_internal/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
from hypothesis.internal.conjecture.data import ConjectureData
8484
from hypothesis.internal.conjecture.utils import (
8585
calc_label_from_callable,
86-
calc_label_from_hash,
86+
calc_label_from_name,
8787
check_sample,
8888
combine_labels,
8989
identity,
@@ -1060,7 +1060,7 @@ def calc_label(self) -> int:
10601060
self.class_label,
10611061
calc_label_from_callable(self.target),
10621062
*[strat.label for strat in self.args],
1063-
*[calc_label_from_hash(k) for k in self.kwargs],
1063+
*[calc_label_from_name(k) for k in self.kwargs],
10641064
*[strat.label for strat in self.kwargs.values()],
10651065
)
10661066

0 commit comments

Comments
 (0)