Repository navigation
gh-161005: simplify subtype notation in numbers.rst - #161006
Conversation
|
Hey, I've replaced the unfamiliar <: subtype notation with clearer prose while preserving the original type relationships and technical meaning. Hope that helps.. |
Documentation build overview
|
| of :class:`Complex` (``a : A <: Complex``), and ``b : B <: | ||
| Complex``. I'll consider ``a + b``: | ||
| of :class:`Complex`, and ``b`` will be an instance of ``B``, | ||
| which is also a subtype of :class:`Complex`. I'll consider ``a + b``: |
There was a problem hiding this comment.
Maybe something like this would flow nicely?
Let ``a`` be an instance of ``A`` and ``b`` be an instance of ``B``,
where both ``A`` and ``B`` are subtypes of :class:`Complex`.
There was a problem hiding this comment.
"Let" sounds very mathy (which I guess this section kind of is, but I'd go with:
In this description,
ais an instance ofAandbis an instance ofB, whereAandBare both subtypes ofComplex.
There was a problem hiding this comment.
Yes, "let" is too heavy even for this description. I would like to remove the personal form of "I" in this document as well since we're anyway editing this part of the docs.
There was a problem hiding this comment.
Thanks for the feedback. I've updated the wording to avoid the mathematical-sounding "Let" and replaced the first-person phrasing in this section, and while preserving the original technical meaning and subtype relationships..
numbers.rst
|
As we're editing this file, let's also change the "Adding More Numeric ABCs" header to "Adding more numeric ABCs": https://devguide.python.org/documentation/style-guide/#capitalization. |
Sure, I'll update that heading to match the documentation style guide as well. |
|
GH-161023 is a backport of this pull request to the 3.15 branch. |
|
GH-161024 is a backport of this pull request to the 3.14 branch. |
…H-161006) (#161023) Co-authored-by: sai <[email protected]> Co-authored-by: Ned Batchelder <[email protected]>
…H-161006) (#161024) Co-authored-by: sai <[email protected]> Co-authored-by: Ned Batchelder <[email protected]>
This PR addresses #161005.
<:subtype notation with clearer prose.