Skip to content

docs: Standardize exception names in docstrings without module prefix - #3060

Open
Sauvi72 wants to merge 1 commit into
theupdateframework:developfrom
Sauvi72:fix/improve-exception-docstrings
Open

Sauvi72 wants to merge 1 commit into
theupdateframework:developfrom
Sauvi72:fix/improve-exception-docstrings

Conversation

@Sauvi72

@Sauvi72 Sauvi72 commented Nov 24, 2026

Copy link
Copy Markdown

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, and tuf/ngclient/ with the established convention used throughout the codebase (such as tuf/ngclient/updater.py).

Fixes #1733

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>
@Sauvi72
Sauvi72 requested a review from a team as a code owner November 24, 2026 14:29

This branch has not been deployed

No deployments
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.

Improve docstrings on exceptions

1 participant