Repository navigation
docs: Standardize exception names in docstrings without module prefix - #3060
Merged
jku merged 1 commit intoNov 24, 2026
Merged
Conversation
Standardize exception names in docstring 'Raises:' sections to use unqualified class names rather than module prefixes, matching the established convention across the codebase. Closes theupdateframework#1733 Signed-off-by: saurav kumar <krsauvi@gmail.com>
jku
approved these changes
Nov 24, 2026
jku
left a comment
Member
There was a problem hiding this comment.
lgtm -- not everything gets correctly linked in generated docs but that's just a docs issue I believe, we just don't include all the exceptions in docs
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 of the changes being introduced by the pull request:
Standardize exception names in docstring
Raises:sections to use the unqualified class name (e.g.SerializationError,DeserializationError,DownloadError) instead of the module path (e.g.tuf.api.serialization.SerializationError,exceptions.DownloadError).This aligns docstrings across
tuf/api/metadata.py,tuf/api/dsse.py, andtuf/ngclient/with the established convention used throughout the codebase (such astuf/ngclient/updater.py).Fixes #1733