bpo-44653: Support typing types in parameter substitution in the union type. (GH-27247) (#27296)

(cherry picked from commit 2e3744d50b6e30ea24351e55b4352dcc58fd469e)

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