diff options
author | Michael Lee <michael.lee.0x2a@gmail.com> | 2018-09-26 08:13:28 -0700 |
---|---|---|
committer | Ivan Levkivskyi <levkivskyi@gmail.com> | 2018-09-26 16:13:28 +0100 |
commit | 130717fe58abb2ab9e7938207df0c130a2562747 (patch) | |
tree | e4d1e736ea15853c2d68918381537beeff6e47c5 /Python/Python-ast.c | |
parent | bb8165172ac2ef8c7092e8e82928cc7f5f310ab3 (diff) | |
download | cpython-git-130717fe58abb2ab9e7938207df0c130a2562747.tar.gz |
Clarify that Type[SomeTypeVar] is legal (#9585)
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).
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions