Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compute has_concrete_subtype after field types #57764

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

serenity4
Copy link
Contributor

Fixes #57673 (comment), allowing valid_as_lattice to correctly return false when provided with a UnionAll type that contains a field parametrized with a Union{} type parameter. This should in most cases prevent inference from using such types that are invalid at runtime.

@serenity4 serenity4 marked this pull request as ready for review March 13, 2025 19:12
@serenity4
Copy link
Contributor Author

Tests seem to be passing, this is good for review.

@serenity4
Copy link
Contributor Author

@vtjnash would you be keen to suggest a reviewer, or perhaps even assign yourself, for this PR?

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.

AssertionError(msg="Union{} typed field should be strictly undefined")
2 participants