]> 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)
authorAndre Delfino <adelfino@gmail.com>
Sun, 27 Sep 2020 19:07:04 +0000 (16:07 -0300)
committerGitHub <noreply@github.com>
Sun, 27 Sep 2020 19:07:04 +0000 (12:07 -0700)
commitd9ab95ff1fe81efdf70e545d536d9f6927d1ba81
tree76e87e90ca91d2f398e76e34034c9f5cf5d5aed7
parenta937ab45d6af4f99ff16fec73d5d75d93c569456
[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
Doc/glossary.rst
Doc/library/typing.rst