]> 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)
committerGitHub <noreply@github.com>
Sun, 27 Sep 2020 19:42:29 +0000 (12:42 -0700)
commitbdf46bc7e12c08aaab676a2c947f03daffe035a7
tree198c976f05df1d6fe5634966b94740788daf4ed9
parent8b2595f68af059afdd61b2bb3d32a2bf4f1662c8
[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