gh-148001: Add shutil.ReadError and RegistryError to __all__ and document them#148004
Open
WYSIATI wants to merge 2 commits intopython:mainfrom
Open
gh-148001: Add shutil.ReadError and RegistryError to __all__ and document them#148004WYSIATI wants to merge 2 commits intopython:mainfrom
WYSIATI wants to merge 2 commits intopython:mainfrom
Conversation
1912758 to
37e2888
Compare
added 2 commits
April 2, 2026 21:46
…d document them Both exceptions are raised by public API functions (unpack_archive() and register_unpack_format()) but were never included in __all__ when they were introduced in Python 3.2.
Use ``shutil.__all__`` instead of :data:`shutil.__all__` to avoid Sphinx ref.data warning.
37e2888 to
e6d6cdb
Compare
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.
ReadErrorandRegistryErrorwere added in Python 3.2 but never included inshutil.__all__or documented. Both are raised by public API functions (unpack_archive()andregister_unpack_format()), so they should be discoverable and importable via wildcard import.This PR adds them to
__all__, documents them inshutil.rst, and updates the existing__all__test.