Repository navigation
fix: use static member discovery in registry inspection - #3531
Merged
Roman Lutz (romanlutz) merged 5 commits intoOct 26, 2026
Merged
Roman Lutz (romanlutz) merged 5 commits into
Roman Lutz (romanlutz) merged 5 commits into
Conversation
Slai.life (huong8373tt-beep)
force-pushed
the
fix/static-discovery-members
branch
from
October 25, 2026 16:28
d0feb5e to
b0fec8a
Compare
7 of 25 tasks
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Roman Lutz (romanlutz)
approved these changes
Oct 26, 2026
Slai.life (huong8373tt-beep)
force-pushed
the
fix/static-discovery-members
branch
from
October 26, 2026 04:09
fa7ddb8 to
561c759
Compare
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> # Conflicts: # pyrit/registry/discovery.py # tests/unit/registry/test_initializer_registry.py
Contributor
Author
|
Thanks for catching and addressing the lazy-export regression. The updated approach preserves explicitly declared |
Roman Lutz (romanlutz)
approved these changes
Oct 26, 2026
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.
Summary
inspect.getmembers_staticwhen discovering registry members from a dynamically loaded module.__dir__and__getattr__.This addresses P311-20 from #3166.
Validation
pre-commit run --files pyrit/registry/discovery.py tests/unit/registry/test_initializer_registry.pypassedgit diff --checkpassedDisclosure
Slai Agent Runtime assisted with analysis, implementation, testing, and preparation of this contribution. The account owner authorized and reviewed the work and remains responsible for the submission.