-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unwrap
type[Union[...]]
when solving typevar constraints (#18266)
Closes #18265, closes #12115. `type[A | B]` is internally represented as `type[A] | type[B]`, and this causes problems for a typevar solver. Prevent using meet in such cases by unwraping `type[...]` if both sides have such shape.
- Loading branch information
1 parent
ee1f4c9
commit 469b4e4
Showing
2 changed files
with
84 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters