Skip to content

docs: Move transaction __init__ doc comment content#2918

Merged
szokeasaurusrex merged 2 commits into
sentry-sdk-2.0from
szokeasaurusrex/move-tx-param-docs
Mar 28, 2024
Merged

docs: Move transaction __init__ doc comment content#2918
szokeasaurusrex merged 2 commits into
sentry-sdk-2.0from
szokeasaurusrex/move-tx-param-docs

Conversation

@szokeasaurusrex

Copy link
Copy Markdown
Member

This change moves the Transaction constructor's parameter doctsring from the __init__ method to the class's docstring. This way, the API docs display the parameter descriptions under the class. When the docstring is defined on __init__, the parameter descriptions are missing from the API docs.

This change also documents the kwargs parameter in the API docs.

Before the change:
Screenshot 2024-03-28 at 13 28 29

After the change:
Screenshot 2024-03-28 at 13 54 36

Partially addresses getsentry/sentry-docs#5082

@szokeasaurusrex
szokeasaurusrex merged commit 2e71de8 into sentry-sdk-2.0 Mar 28, 2024
@szokeasaurusrex
szokeasaurusrex deleted the szokeasaurusrex/move-tx-param-docs branch March 28, 2024 13:20
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.

2 participants