Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Sep 26, 2018

Currently, the docs state that when doing Type[X], X is only allowed to
be a class, a union of classes, and Any. This pull request amends
that sentence to clarify X may also be a typevar (or a union involving
classes, Any, and TypeVars).
(cherry picked from commit 130717f)

Co-authored-by: Michael Lee [email protected]

https://bugs.python.org/issue28556

Currently, the docs state that when doing `Type[X]`, X is only allowed to
be a class, a union of classes, and Any. This pull request amends
that sentence to clarify X may also be a typevar (or a union involving
classes, Any, and TypeVars).
(cherry picked from commit 130717f)

Co-authored-by: Michael Lee <[email protected]>
@bedevere-bot bedevere-bot added skip news docs Documentation in the Doc dir labels Sep 26, 2018
@ilevkivskyi ilevkivskyi changed the title [3.6] Clarify that Type[SomeTypeVar] is legal (GH-9585) [3.6] bpo-28556: Clarify that Type[SomeTypeVar] is legal (GH-9585) Sep 26, 2018
@bedevere-bot bedevere-bot added skip news docs Documentation in the Doc dir labels Sep 26, 2018
@miss-islington
Copy link
Contributor Author

@Michael0x2a and @ilevkivskyi: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit dfa1113 into python:3.6 Sep 26, 2018
@miss-islington miss-islington deleted the backport-130717f-3.6 branch September 26, 2018 15:23
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 news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants