Skip to content

PEP 764: Second round of updates #4386

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Viicos
Copy link
Contributor

@Viicos Viicos commented Apr 23, 2025

To avoid yet another update, might be best to wait for the outcome of PEP 728 so that I can update this PEP with respect to the closed behavior.

cc @erictraut

  • Change is either:
    • To a Draft PEP
    • To an Accepted or Final PEP, with Steering Council approval
    • To fix an editorial issue (markup, typo, link, header, etc)
  • PR title prefixed with PEP number (e.g. PEP 123: Summary of changes)

@Viicos Viicos requested a review from JelleZijlstra as a code owner April 23, 2025 20:41
@@ -214,14 +224,18 @@ Mypy supports a similar syntax as an :option:`experimental feature <mypy:mypy.--
def test_values() -> {"int": int, "str": str}:
return {"int": 42, "str": "test"}

Support for this PEP is added in `this pull request <https://github.com/python/mypy/pull/18889>`_.
Copy link
Member

Choose a reason for hiding this comment

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

To fix the build, add a second underscore to make an "anonymous" reference, so it's not duplicated:

Suggested change
Support for this PEP is added in `this pull request <https://github.com/python/mypy/pull/18889>`_.
Support for this PEP is added in `this pull request <https://github.com/python/mypy/pull/18889>`__.

Plus we could use more accessible link text instead:
https://www.a11yproject.com/posts/creating-valid-and-accessible-links/#write-helpful-link-text

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you have suggestions to make it more accessible? The way I understand what's described in your link is that the link text should describe what it points to, and this pull request seems to describe the target correctly? (Perhaps mypy should be mentioned in the text).

Copy link
Member

Choose a reason for hiding this comment

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

If someone is navigating just via links, they'll hear "this pull request", "this pull request" for both.

Perhaps we could mention the repo names? For example, "this mypy pull request", "this typing_extensions pull request".

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.

3 participants