]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44632: Fix support of TypeVar in the union type (GH-27139)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 14 Jul 2021 17:09:15 +0000 (20:09 +0300)
committerGitHub <noreply@github.com>
Wed, 14 Jul 2021 17:09:15 +0000 (20:09 +0300)
commita158b20019b50e3ece6e4743ec4e6ae8d818b690
treede618499ddf29130bc329bee132e370741c2d0c5
parentb81cac05606c84958b52ada09f690463a3c7e949
bpo-44632: Fix support of TypeVar in the union type (GH-27139)

int | TypeVar('T') returns now an instance of types.Union
instead of typing.Union.
Lib/test/test_types.py
Objects/unionobject.c