← 返回首页
`types.UnionType` + `Literal` types are not tested together · Issue #103746 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

types.UnionType + Literal types are not tested together #103746

New issue
New issue

Description

Literal had some known problems when used with typing.Union and types.UnionType.
Example: #103592

I've covered typing.Union, see #103706
But, I forgot about types.UnionType.

So, I will add this new test as a part of this issue.

Linked PRs

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtopic-typingtype-bugAn unexpected behavior, bug, or error

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

  • Open in GitHub Copilot app

Footer

© 2026 GitHub, Inc.