Skip to content

[doc] Leverage the fact that the actual types can now be indexed for typing#22340

Merged
miss-islington merged 3 commits intopython:masterfrom
andresdelfino:use_actual_generic_types
Sep 27, 2020
Merged

[doc] Leverage the fact that the actual types can now be indexed for typing#22340
miss-islington merged 3 commits intopython:masterfrom
andresdelfino:use_actual_generic_types

Conversation

@andresdelfino
Copy link
Contributor

@andresdelfino andresdelfino commented Sep 21, 2020

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

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants