Skip to content

MAINT: Make seed dataset provider private helpers keyword-only - #4788

Merged
Roman Lutz (romanlutz) merged 1 commit into
microsoft:mainfrom
valbarov:maint/keyword-only-seed-dataset-provider
Dec 2, 2026
Merged

Roman Lutz (romanlutz) merged 1 commit into
microsoft:mainfrom
valbarov:maint/keyword-only-seed-dataset-provider

Conversation

@valbarov

Copy link
Copy Markdown
Contributor

Description

Relates to #4216

Make the three baselined signatures in pyrit.datasets.seed_datasets.seed_dataset_provider keyword-only and remove their keyword-only baseline entries.

  • SeedDatasetProvider._match_filter_to_metadata and the nested helpers fetch_single_dataset_async and fetch_with_semaphore_async in fetch_datasets_async now take keyword-only parameters.
  • _match_filter_to_metadata has no overrides; its one production caller and all test calls already pass keywords, so only the signature changes. The two nested helpers are each called once inside fetch_datasets_async; those calls now pass keywords. None is a callback, so no exemptions are needed.
  • The existing tests in tests/unit/datasets/test_seed_dataset_provider.py already cover every updated line, so no new tests are added.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 21:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the keyword-only helper migration.

No open issues 🎉

What changed in this PR

Continues #4216’s keyword-only migration by updating three private helpers in PyRIT’s seed dataset provider without changing dataset-loading logic.

Changes:

  • Makes _match_filter_to_metadata and both nested fetch helpers keyword-only.
  • Updates the two nested-helper calls to pass named arguments.
  • Removes the three corresponding keyword-only baseline entries.
File Description
pyrit/​datasets/​seed_datasets/​seed_dataset_provider.py Makes three helper signatures keyword-only and updates affected calls.
build_scripts/​keyword_only_baseline.txt Removes the three migrated signatures from the baseline.

Review effort: Balanced

@romanlutz
Roman Lutz (romanlutz) added this pull request to the merge queue Dec 2, 2026
Merged via the queue into microsoft:main with commit 3b4541b Dec 2, 2026
72 checks passed
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.

3 participants