Skip to content

Render Sphinx deprecation notice from @deprecated decorator#297

Merged
khaledhosny merged 1 commit into
mainfrom
deprectated-since
Jun 1, 2026
Merged

Render Sphinx deprecation notice from @deprecated decorator#297
khaledhosny merged 1 commit into
mainfrom
deprectated-since

Conversation

@khaledhosny

Copy link
Copy Markdown
Collaborator

The decorator now also prepends a .. deprecated:: <since> directive to the wrapped function's docstring, so the API reference shows the "Deprecated since version X. Use Y instead.".

All existing call sites filled in with the version where the API was first deprecated.

The decorator now also prepends a `.. deprecated:: <since>` directive
to the wrapped function's docstring, so the API reference shows the
"Deprecated since version X. Use Y instead.".

All existing call sites filled in with the version where the API was
first deprecated.
@khaledhosny
khaledhosny merged commit c5b8c9c into main Jun 1, 2026
7 checks passed
@khaledhosny
khaledhosny deleted the deprectated-since branch June 1, 2026 22:53
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.

1 participant