Skip to content

Infra: add extlinks for python/cpython issues and PRs #4426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions peps/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@
# This config is a dictionary of external sites,
# mapping unique short aliases to a base URL and a prefix.
# https://www.sphinx-doc.org/en/master/usage/extensions/extlinks.html
_repo = "python/cpython"
extlinks = {
"cpython-issue": (f"https://github.com/{_repo}/issues/%s", f"{_repo}#%s"),
"cpython-pr": (f"https://github.com/{_repo}/pull/%s", f"{_repo}#%s"),
"pypi": ("https://pypi.org/project/%s/", "%s"),
}

Expand Down
3 changes: 1 addition & 2 deletions peps/pep-0749.rst
Original file line number Diff line number Diff line change
Expand Up @@ -825,8 +825,7 @@ This allows the following implementation strategy:
* The generated ``__annotate__`` function uses the set to determine
which annotations were defined in the class or module body, and return only those.

This was implemented in `python/cpython#130935
<https://github.com/python/cpython/pull/130935>`__.
This was implemented in :cpython-pr:`130935`.

Specification
-------------
Expand Down