Uh oh!
There was an error while loading. Please reload this page.
bpo-41805: Documentation for PEP 585 - #22615
Conversation
Fidget-Spinner
commented
Oct 10, 2020
It should be ready for review now @gvanrossum :). Please take a look whenever it's convenient for you. Thanks! |
gvanrossum
commented
Oct 20, 2020
I'm pretty overwhelmed by sprint activity. I promise I will review this at some point -- if I haven't done so in 1 week can you ping me? Either here or on the issue will notify me via email. |
Fidget-Spinner
commented
Oct 21, 2020
Alright, no worries. Thanks for the promise, I'll ping again in a week :) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| These standard library collections support parameterized generics. Most of | ||
| their type parameters can be found in the :mod:`typing` module: |
There was a problem hiding this comment.
What do you mean by the second sentence? That you need to read the docs for typing to find out how many parameters each of these has and whether they are invariant or covariant?
There was a problem hiding this comment.
Your interpretation is correct. Should I place a table for such information instead?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: Guido van Rossum <gvanrossum@users.noreply.github.com>
gvanrossum
left a comment
There was a problem hiding this comment.
Two more suggestions that I will apply myself, then it's good. Thank you very much!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
miss-islington
commented
Oct 27, 2020
Thanks @Fidget-Spinner for the PR, and @gvanrossum for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
miss-islington
commented
Oct 27, 2020
Sorry, @Fidget-Spinner and @gvanrossum, I could not cleanly backport this to |
gvanrossum
commented
Oct 27, 2020
@Fidget-Spinner Can you work on the manual backport? |
@gvanrossum sure, give me a day or two to figure out cherry_picker. Also, thanks for the many rounds of reviews. This was a fairly challenging peice of documentation, but I'm glad to have had feedback throughout the process to help me along the way :). |
gvanrossum
commented
Oct 28, 2020
via email
You're welcome -- and take your time (though cherry_picker really isn't
much more than a little bit of workflow around the git cherry-pick command
-- the hard part presumably is resolving the merge conflict :-). |
bedevere-bot
commented
Oct 28, 2020
GH-23016 is a backport of this pull request to the 3.9 branch. |
…lots1 * origin/master: (365 commits) bpo-42029: Remove IRIX code (pythonGH-23023) bpo-42143: Ensure PyFunction_NewWithQualName() can't fail after creating the func object (pythonGH-22953) bpo-34204: Use pickle.DEFAULT_PROTOCOL in shelve (pythonGH-19639) bpo-41805: Documentation for PEP 585 (pythonGH-22615) bpo-42161: Micro-optimize _collections._count_elements() (pythonGH-23008) bpo-42161: Remove private _PyLong_Zero and _PyLong_One (pythonGH-23003) bpo-42099: Fix reference to ob_type in unionobject.c and ceval (pythonGH-22829) bpo-41659: Disallow curly brace directly after primary (pythonGH-22996) bpo-6761: Enhance __call__ documentation (pythonGH-7987) bpo-42161: Modules/ uses _PyLong_GetZero() and _PyLong_GetOne() (pythonGH-22998) bpo-41474, Makefile: Add dependency on cpython/frameobject.h (pythonGH-22999) bpo-42157: Rename unicodedata.ucnhash_CAPI (pythonGH-22994) bpo-42161: Use _PyLong_GetZero() and _PyLong_GetOne() (pythonGH-22995) bpo-30681: Support invalid date format or value in email Date header (pythonGH-22090) bpo-42161: Add _PyLong_GetZero() and _PyLong_GetOne() (pythonGH-22993) bpo-42123: Run the parser two times and only enable invalid rules on the second run (pythonGH-22111) bpo-42157: Convert unicodedata.UCD to heap type (pythonGH-22991) bpo-42157: unicodedata avoids references to UCD_Type (pythonGH-22990) bpo-39101: Fixes BaseException hang in IsolatedAsyncioTestCase. (pythonGH-22654) bpo-1635741: _PyUnicode_Name_CAPI moves to internal C API (pythonGH-22713) ...
This PR (if accepted) probably needs a backport to 3.9. It also partly addresses https://bugs.python.org/issue40814.
Also, I'll need to update the links in stdtypes Union Type to point to GenericAlias now. However, I'm not sure if doing that in this PR would make backporting harder/go against the 1 issue per PR recommendation.
Lastly, I have a feeling that we should create a section in stdtypes called "Types for Type Annotations" and place GenericAlias and Union under that since it's becoming a moderate chunk of the documentation for that page. I'll open a bpo if that makes sense.
https://bugs.python.org/issue41805