Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
[doc] Leverage the fact that the actual types can now be indexed for typing#22340
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
[doc] Leverage the fact that the actual types can now be indexed for typing #22340
Uh oh!
There was an error while loading. Please reload this page.
Conversation
andresdelfino commented Sep 21, 2020 • edited by miss-islington
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by miss-islington
Uh oh!
There was an error while loading. Please reload this page.
gvanrossum left a comment
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.
Thanks! At first I was hesitant to approve this, because people will want to write code that's backwards compatible for a few versions, but they should just read the old docs...
gvanrossum commented Sep 27, 2020
Travis reporting is stuck, and it prevents me from overriding, so I'm going to close and reopen in the hope that fixes it. (There's quite a chance that it doesn't.) |
gvanrossum commented Sep 27, 2020
@Mariatta What's the trick to landing this? |
andresdelfino commented Sep 27, 2020 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
@gvanrossum it may be the Travis CI build, which is queued. It seems there was a problem with Travis reporting the build state to GitHub, as all jobs are done in Travis: https://travis-ci.com/github/python/cpython/builds/185656276 GitHub is waiting for that build to end since I opened the PR. |
gvanrossum commented Sep 27, 2020
If you can, read the issue that references this. There’s a GitHub bug that prevents it from seeing the reported status, and some kind of super permission that I don’t have is needed to bypass that. :-( |
miss-islington commented Sep 27, 2020
@andresdelfino: Status check is done, and it's a success ✅ . |
1 similar comment
miss-islington commented Sep 27, 2020
@andresdelfino: Status check is done, and it's a success ✅ . |
miss-islington commented Sep 27, 2020
Sorry, I can't merge this PR. Reason: |
1 similar comment
miss-islington commented Sep 27, 2020
Sorry, I can't merge this PR. Reason: |
andresdelfino commented Sep 27, 2020
Just pushed an empty commit to try to unlock the Travis build. |
miss-islington commented Sep 27, 2020
@andresdelfino: Status check is done, and it's a success ✅ . |
miss-islington commented Sep 27, 2020
Thanks @andresdelfino for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9. |
…typing (pythonGH-22340) This shows users that they can use the actual types. Using deprecated types is confusing. This also prefers colections.abc.Sized instead of the alias typing.Sized. I guess the aliases were created to make it convenient to import all collections related types from the same place. This should be backported to 3.9. Automerge-Triggered-By: @gvanrossum (cherry picked from commit d9ab95f) Co-authored-by: Andre Delfino <adelfino@gmail.com>
bedevere-bot commented Sep 27, 2020
GH-22430 is a backport of this pull request to the 3.9 branch. |
…typing (GH-22340) This shows users that they can use the actual types. Using deprecated types is confusing. This also prefers colections.abc.Sized instead of the alias typing.Sized. I guess the aliases were created to make it convenient to import all collections related types from the same place. This should be backported to 3.9. Automerge-Triggered-By: @gvanrossum (cherry picked from commit d9ab95f) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* origin/master: (113 commits) bpo-41773: Raise exception for non-finite weights in random.choices(). (pythonGH-22441) bpo-41873: Add vectorcall for float() (pythonGH-22432) bpo-41861: Convert _sqlite3 PrepareProtocolType to heap type (pythonGH-22428) bpo-41842: Add codecs.unregister() function (pythonGH-22360) bpo-41875: Use __builtin_unreachable when possible (pythonGH-22433) bpo-40105: ZipFile truncate in append mode with shorter comment (pythonGH-19337) bpo-41870: Use PEP 590 vectorcall to speed up bool() (pythonGH-22427) [doc] Leverage the fact that the actual types can now be indexed for typing (pythonGH-22340) bpo-41861: Convert _sqlite3 cache and node static types to heap types (pythonGH-22417) bpo-41858: Clarify line in optparse doc (pythonGH-22407) Revert "Fix all Python Cookbook links (python#22205)" (pythonGH-22424) bpo-1635741: Port _bisect module to multi-phase init (pythonGH-22415) bpo-41428: Fix compiler warning in unionobject.c (pythonGH-22416) Fix logging error message (pythonGH-22410) bpo-39934: Account for control blocks in 'except' in compiler. (pythonGH-22395) bpo-41775: Make 'IDLE Shell' the shell title (python#22399) bpo-41428: Fix compiler warnings in unionobject.c (pythonGH-22388) bpo-41654: Fix compiler warning in MemoryError_dealloc() (pythonGH-22387) bpo-41833: threading.Thread now uses the target name (pythonGH-22357) bpo-30155: Add macros to get tzinfo from datetime instances (pythonGH-21633) ...
…H-22524) This changes a few occurrences left behind by #22340. Automerge-Triggered-By: @gvanrossum
…ythonGH-22524) This changes a few occurrences left behind by pythonGH-22340. Automerge-Triggered-By: @gvanrossum (cherry picked from commit 7f54e56) Co-authored-by: Andre Delfino <adelfino@gmail.com>
…H-22524) This changes a few occurrences left behind by GH-22340. Automerge-Triggered-By: @gvanrossum (cherry picked from commit 7f54e56) Co-authored-by: Andre Delfino <adelfino@gmail.com>
…typing (pythonGH-22340) This shows users that they can use the actual types. Using deprecated types is confusing. This also prefers colections.abc.Sized instead of the alias typing.Sized. I guess the aliases were created to make it convenient to import all collections related types from the same place. This should be backported to 3.9. Automerge-Triggered-By: @gvanrossum (cherry picked from commit d9ab95f) Co-authored-by: Andre Delfino <adelfino@gmail.com>
…ythonGH-22524) This changes a few occurrences left behind by pythonGH-22340. Automerge-Triggered-By: @gvanrossum (cherry picked from commit 7f54e56) Co-authored-by: Andre Delfino <adelfino@gmail.com>
…typing (pythonGH-22340) This shows users that they can use the actual types. Using deprecated types is confusing. This also prefers colections.abc.Sized instead of the alias typing.Sized. I guess the aliases were created to make it convenient to import all collections related types from the same place. This should be backported to 3.9. Automerge-Triggered-By: @gvanrossum
…ythonGH-22524) This changes a few occurrences left behind by python#22340. Automerge-Triggered-By: @gvanrossum
This shows users that they can use the actual types. Using deprecated types is confusing.
This also prefers colections.abc.Sized instead of the alias typing.Sized. I guess the aliases were created to make it convenient to import all collections related types from the same place.
This should be backported to 3.9.
Automerge-Triggered-By: @gvanrossum