Skip to content

Start work on #22451. Add support for union of constraints to support OR TypeVar constraints and update solver - #22530

Draft
PratyushD21 wants to merge 1 commit into
python:masterfrom
PratyushD21:fix-22451-union-constraint-alternatives
Draft

PratyushD21 wants to merge 1 commit into
python:masterfrom
PratyushD21:fix-22451-union-constraint-alternatives

Conversation

@PratyushD21

Copy link
Copy Markdown

Aims to solve #22451. Work in progress; this placeholder PR tracks investigation into preserving alternative union constraints and resolving them during inference. No implementation changes yet. One possible solution is to add support for Unions when creating constraints and have the solver solve for the Unions. This needs to be done when we have multiple possible TypeVars pointing at a given type.

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.

1 participant