◐ Shell
clean mode source ↗

bpo-44632: Fix support of TypeVar in the union type by serhiy-storchaka · Pull Request #27139 · python/cpython

int | TypeVar('T') returns now an instance of types.Union
instead of typing.Union.

@serhiy-storchaka serhiy-storchaka changed the title Union or typevar bpo-44632: Fix support of TypeVar in the union type

Jul 14, 2021

Fidget-Spinner

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jul 14, 2021
int | TypeVar('T') returns now an instance of types.Union
instead of typing.Union.
(cherry picked from commit a158b20)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>

serhiy-storchaka added a commit that referenced this pull request

Jul 15, 2021
)

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>