PEP 484: Fixed typos, IOW, apply PEP8 inline comment space #1106
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.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixed Typos
Link
"Similarly, there is no support for specifying callback signatures with a variable number of argument of a specific type."
Changed to:
arguments
Link
"I/O releated types:"
Changed to:
related
Replaced IOW -> In other words
Link
"... that's a subtype of
C
, not a special form. IOW, in the above example calling e.g.new_user(Union[BasicUser, ProUser])
is ..."Changed to:
In other words
Reasoning
I'm reasonably sure IOW is intended to mean In other words (i.e. UrbanDictionary:IOW instead of one of Wikipedia:IOW) in this context, so have optimistically suggested this replacement.
See PEP 20: Explicit is better than implicit.
Applied PEP 8: Inline comments
(Note this occurred in many places, please review the diff or individual commits for details)
e.g.
Reasoning
PEP8: "Inline comments should be separated by at least two spaces from the statement."
Also, as noted in this PEP484 Type comments section, type comments should be at the start, and can then be followed by a comment, separated with a single space as it is a comment within a comment, i.e.
@Mariatta @johnsonb2 Thank you for the inspiration in #914