Skip to content

Commit f8e5830

Browse files
committed
add start == end todo
1 parent 1b02707 commit f8e5830

File tree

1 file changed

+3
-0
lines changed
  • hypothesis-python/src/hypothesis/internal/conjecture

1 file changed

+3
-0
lines changed

hypothesis-python/src/hypothesis/internal/conjecture/data.py

+3
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,9 @@ def begin(self) -> None:
631631
self.groups: "Dict[int, Set[Tuple[int, int]]]" = defaultdict(set)
632632

633633
def start_example(self, i: int, label_index: int) -> None:
634+
# TODO should we discard start == end cases? occurs for eg st.data()
635+
# which is conditionally or never drawn from. arguably swapping
636+
# nodes with the empty list is a useful mutation enabled by start == end?
634637
key = (self.examples[i].ir_start, self.examples[i].ir_end)
635638
self.groups[label_index].add(key)
636639

0 commit comments

Comments
 (0)