Skip to content

Commit

Permalink
add start == end todo
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed Jun 13, 2024
1 parent 1b02707 commit f8e5830
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hypothesis-python/src/hypothesis/internal/conjecture/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,9 @@ def begin(self) -> None:
self.groups: "Dict[int, Set[Tuple[int, int]]]" = defaultdict(set)

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

Expand Down

0 comments on commit f8e5830

Please sign in to comment.