Skip to content

Conversation

@dhruvmanila
Copy link
Member

@dhruvmanila dhruvmanila added internal An internal refactor or improvement ty Multi-file analysis & type inference labels Apr 2, 2025
@dhruvmanila dhruvmanila enabled auto-merge (squash) April 2, 2025 02:35
@github-actions
Copy link
Contributor

github-actions bot commented Apr 2, 2025

mypy_primer results

No ecosystem changes detected ✅

@dhruvmanila dhruvmanila merged commit f630248 into main Apr 2, 2025
22 checks passed
@dhruvmanila dhruvmanila deleted the dhruv/move-test branch April 2, 2025 02:46
Comment on lines +23 to +26
def _(x: tuple[Never], y: tuple[int, Never], z: tuple[Never, int]):
reveal_type(x) # revealed: Never
reveal_type(y) # revealed: Never
reveal_type(z) # revealed: Never
Copy link
Contributor

Choose a reason for hiding this comment

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

Not that it's particularly important, but do these really test something other than the assertions in lines 16-18?

Copy link
Member

Choose a reason for hiding this comment

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

I see your point, but IMO it "says the same thing in a different way", and I think that can be valuable for human readers of the test

Copy link
Member Author

Choose a reason for hiding this comment

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

To add to that, I'd say it's testing the "simplified to Never" part specifically and more precisely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants