-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
base: main
Are you sure you want to change the base?
Conversation
peps/pep-0764.rst
Outdated
@@ -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>`_. |
There was a problem hiding this comment.
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:
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
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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".
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
PEP 123: Summary of changes
)