]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44632: Fix support of TypeVar in the union type (GH-27139) (GH-27143)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 15 Jul 2021 07:25:22 +0000 (00:25 -0700)
committerGitHub <noreply@github.com>
Thu, 15 Jul 2021 07:25:22 +0000 (10:25 +0300)
commitcc1a47c849a206441c9b370b6ca954862a523082
tree25abd46ff3472c10c83358d96ec9f6df5d3501f6
parent6dec5255829a31826990ea40ca106cc496570df2
bpo-44632: Fix support of TypeVar in the union type (GH-27139) (GH-27143)

int | TypeVar('T') returns now an instance of types.Union
instead of typing.Union.
(cherry picked from commit a158b20019b50e3ece6e4743ec4e6ae8d818b690)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_types.py
Objects/unionobject.c