Repository navigation
Implement PEP 585 (Type Hinting Generics In Standard Collections) #83662
Description
Activity
See PEP-585, which is still under review and may change in response to this work.
- added3.9 (EOL)end of lifeend of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Jan 28, 2020 Submitted a request for consideration by the Steering Council: python/steering-council#21
The SC approved the PEP!
Łukasz, do you want to submit the PR to update the PEP status?
We should get the implementation reviewed (e.g. by Serhiy) and land it before alpha 6 goes out, April 22 (we should aim for a week before at least).
The base implementation has landed. We still need docs, and I'm sure that the alpha and beta release cycle will find small things that need to be improved.
Perhaps the next priority is an update for Doc/whatsnew/3.9.rst.
@gvanrossum is new types going to support generic alias protocol or this subset will be kept? Like typeshed uses os.DirEntry as a generic, but in reality it is not. (#17561)
Ethan Smith produced a list of types that are Generic in typeshed but not in the stdlib. So these could be added.
8 remaining items
No, I did not check other changes. These two just looked too suspicious.
I went through the list I generated and it seems that the
ipaddress._BaseNetwork and mmap.mmap cases are the only one I saw that
shouldn't be generic. I will submit a PR to revert those. The only item
left after that which I know of is _lru_cache_wrapper.On Tue, Apr 14, 2020 at 4:14 PM Guido van Rossum <report@bugs.python.org>
wrote:Guido van Rossum <guido@python.org> added the comment:
New changeset d01628e by Ethan Smith in
branch 'master':
bpo-39481: PEP-585 for dataclasses, mailbox, contextvars (GH-19425)----------
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue39481\>
Thanks!
--Guido (mobile)
In commit 0e80b56 a What's New section was added.
This can be closed. It needs docs though; there's a separate issue for that (bpo-40814).
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields: