Skip to content

Handle zero tail slices in SeedDataset.get_values#1511

Merged
romanlutz merged 1 commit intomicrosoft:mainfrom
biefan:handle-zero-slices-in-seed-dataset
Mar 19, 2026
Merged

Handle zero tail slices in SeedDataset.get_values#1511
romanlutz merged 1 commit intomicrosoft:mainfrom
biefan:handle-zero-slices-in-seed-dataset

Conversation

@biefan
Copy link
Copy Markdown
Contributor

@biefan biefan commented Mar 17, 2026

Summary

  • treat last=0 as an empty tail slice in SeedDataset.get_values()
  • keep overlap handling correct when first or last is explicitly zero
  • add regression coverage for zero-length tail selections

Testing

  • .venv/bin/pytest tests/unit/models -q
  • .venv/bin/ruff check pyrit/models/seeds/seed_dataset.py tests/unit/models/test_seed.py

@romanlutz romanlutz merged commit da42641 into microsoft:main Mar 19, 2026
38 checks passed
riyosha pushed a commit to riyosha/PyRIT that referenced this pull request Mar 24, 2026
@EduardoSoria
Copy link
Copy Markdown

jbolor21 pushed a commit to jbolor21/jbolor-PyRIT that referenced this pull request Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants