Fix RST backticks #1554
Merged
Fix RST backticks #1554
Conversation
pep-0613.rst
Outdated
| @@ -88,7 +88,7 @@ across the codebase. | |||
|
|
|||
| With explicit aliases, the type checker has enough information to error on the | |||
| actual definition of the bad type alias, and explain why: that :code:`MyGeneric(int)` | |||
| and `InvalidType` are not valid types. When the value expression is no longer | |||
| and code:`InvalidType` are not valid types. When the value expression is no longer | |||
hugovk
Aug 6, 2020
Author
Contributor
The code: prefix is used here for consistency because the rest of this file uses it.
The code: prefix is used here for consistency because the rest of this file uses it.
tk0miya
Aug 6, 2020
I guess you'd like to use :code: role here, right?
I guess you'd like to use :code: role here, right?
brettcannon
Aug 6, 2020
Member
I believe @tk0miya is suggesting:
Suggested change
and code:`InvalidType` are not valid types. When the value expression is no longer
and :code:`InvalidType` are not valid types. When the value expression is no longer
But we are not using docutils, so it probably should be:
Suggested change
and code:`InvalidType` are not valid types. When the value expression is no longer
and ``InvalidType`` are not valid types. When the value expression is no longer
I believe @tk0miya is suggesting:
Suggested change
| and code:`InvalidType` are not valid types. When the value expression is no longer | |
| and :code:`InvalidType` are not valid types. When the value expression is no longer |
But we are not using docutils, so it probably should be:
Suggested change
| and code:`InvalidType` are not valid types. When the value expression is no longer | |
| and ``InvalidType`` are not valid types. When the value expression is no longer |
hugovk
Aug 6, 2020
•
Author
Contributor
Yep, I did mean :code:, thanks!
But I'll update all the `:code:X` in this file to ``X``
Yep, I did mean :code:, thanks!
But I'll update all the `:code:X` in this file to ``X``
|
Minor tweak, otherwise LGTM! |
pep-0613.rst
Outdated
| @@ -88,7 +88,7 @@ across the codebase. | |||
|
|
|||
| With explicit aliases, the type checker has enough information to error on the | |||
| actual definition of the bad type alias, and explain why: that :code:`MyGeneric(int)` | |||
| and `InvalidType` are not valid types. When the value expression is no longer | |||
| and code:`InvalidType` are not valid types. When the value expression is no longer | |||
brettcannon
Aug 6, 2020
Member
I believe @tk0miya is suggesting:
Suggested change
and code:`InvalidType` are not valid types. When the value expression is no longer
and :code:`InvalidType` are not valid types. When the value expression is no longer
But we are not using docutils, so it probably should be:
Suggested change
and code:`InvalidType` are not valid types. When the value expression is no longer
and ``InvalidType`` are not valid types. When the value expression is no longer
I believe @tk0miya is suggesting:
Suggested change
| and code:`InvalidType` are not valid types. When the value expression is no longer | |
| and :code:`InvalidType` are not valid types. When the value expression is no longer |
But we are not using docutils, so it probably should be:
Suggested change
| and code:`InvalidType` are not valid types. When the value expression is no longer | |
| and ``InvalidType`` are not valid types. When the value expression is no longer |
|
Thanks! |
AA-Turner
added a commit
to AA-Turner/peps
that referenced
this pull request
Aug 15, 2020
mnm678
added a commit
to mnm678/peps
that referenced
this pull request
Oct 22, 2020
gaborbernat
added a commit
to gaborbernat/peps
that referenced
this pull request
Dec 13, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.


Update:
In Markdown, single backticks are for inline code:
for_example_like_thisIn reStructuredText, single backticks are for "interpreted text" and "domain- or application-dependent" (see table below).
inline_code_and are meant to be hypertext referencesRef:
I'll send another PR to suggest adding linting to the CI (unless you'd prefer it here?).