Skip to content

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

Merged
jku merged 1 commit into
theupdateframework:developfrom
Sauvi72:fix/improve-exception-docstrings
Nov 24, 2026
Merged

jku merged 1 commit into
theupdateframework:developfrom
Sauvi72:fix/improve-exception-docstrings

Conversation

@Sauvi72

@Sauvi72 Sauvi72 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

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

@jku jku left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@jku
jku merged commit 7fda3fe into theupdateframework:develop Nov 24, 2026
17 checks passed
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

2 participants