Repository navigation
MAINT: Make seed dataset provider private helpers keyword-only - #4788
Open
Vadim Albarov (valbarov) wants to merge 1 commit into
Open
Vadim Albarov (valbarov) wants to merge 1 commit into
Vadim Albarov (valbarov) wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
🟢 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_metadataand 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
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Relates to #4216
Make the three baselined signatures in
pyrit.datasets.seed_datasets.seed_dataset_providerkeyword-only and remove their keyword-only baseline entries.SeedDatasetProvider._match_filter_to_metadataand the nested helpersfetch_single_dataset_asyncandfetch_with_semaphore_asyncinfetch_datasets_asyncnow take keyword-only parameters._match_filter_to_metadatahas 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 insidefetch_datasets_async; those calls now pass keywords. None is a callback, so no exemptions are needed.tests/unit/datasets/test_seed_dataset_provider.pyalready cover every updated line, so no new tests are added.