[3.11] gh-103746: Test `types.UnionType` and `Literal` types together (GH-103747) (#103772)

gh-103746: Test `types.UnionType` and `Literal` types together (GH-103747)
(cherry picked from commit 3d29edaf0a5f2e12e7f72552f602c761ddaf0d13)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 files changed