]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[doc] Leverage the fact that the actual types can now be indexed for typing (GH-22340)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 27 Sep 2020 19:42:29 +0000 (12:42 -0700)
committerŁukasz Langa <lukasz@langa.pl>
Sun, 4 Oct 2020 15:30:48 +0000 (17:30 +0200)
commit900b9851ff93c695300af69cf5f2793a6750f781
tree48c770379b9611c11f4e7006f6a4195c2597670d
parenta5750cf43466f5913cdeef774f7c2dcb5943d408
[doc] Leverage the fact that the actual types can now be indexed for 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 d9ab95ff1fe81efdf70e545d536d9f6927d1ba81)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
Doc/glossary.rst
Doc/library/typing.rst