Skip to content

Conversation

KotlinIsland
Copy link
Contributor

@KotlinIsland KotlinIsland commented Oct 1, 2025

int | int is not UnionType

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I think in this case the test wasn't particularly helpful (so I removed it), as each type checker has its own special-casing for this kind of scenario, and anyway the signature here seems simple enough that it's easy to see why it is the way it is if there's a comment in the source code

Copy link
Contributor

github-actions bot commented Oct 1, 2025

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood AlexWaygood merged commit fc1062c into python:main Oct 1, 2025
57 of 63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants