[ty] Unions/intersections of gradual types should be assignable to Never#24056
Merged
ibraheemdev merged 2 commits intomainfrom Mar 19, 2026
Merged
[ty] Unions/intersections of gradual types should be assignable to Never#24056ibraheemdev merged 2 commits intomainfrom
Never#24056ibraheemdev merged 2 commits intomainfrom
Conversation
Typing conformance resultsNo changes detected ✅Current numbersThe percentage of diagnostics emitted that were expected errors held steady at 85.29%. The percentage of expected errors that received a diagnostic held steady at 78.13%. The number of fully passing files held steady at 64/132. |
sharkdp
approved these changes
Mar 19, 2026
Contributor
sharkdp
left a comment
There was a problem hiding this comment.
Thank you. It might be worth running the property tests on this branch.
sharkdp
reviewed
Mar 19, 2026
| from ty_extensions import static_assert, is_assignable_to, Unknown, Intersection | ||
| from typing_extensions import Never, Any | ||
|
|
||
| static_assert(is_assignable_to(Any, Never)) |
Contributor
There was a problem hiding this comment.
We have the same test in type_compendium/any.md, but it's obviously fine to repeat it here.
Memory usage reportMemory usage unchanged ✅ |
sharkdp
reviewed
Mar 19, 2026
crates/ty_python_semantic/resources/mdtest/type_properties/is_assignable_to.md
Show resolved
Hide resolved
|
carljm
added a commit
that referenced
this pull request
Mar 25, 2026
* main: [`flake8-bandit`] Check tuple arguments for partial paths in `S607` (#24080) [ty] Update Salsa (#24081) Update Rust toolchain to 1.94 and MSRV to 1.92 (#24076) [ty] Move ruffen-docs formatting config to a `ruff.toml` config file (#24074) [ty] `reveal_type` diagnostics in unreachable code (#24070) [ty] Improve keyword argument narrowing for nested dictionaries (#24010) [ty] Preserve blank lines between comments and imports in add-import action (#24066) [ty] Add diagnostic hint for invalid assignments involving invariant generics (#24032) Clarify `extend-ignore` and `extend-select` settings documentation (#24064) [ty] Batch changes to watched paths (#24045) replace deprecated `std::f64::EPSILON` with `f64::EPSILON` (#24067) [ty] Fix untracked reads in Salsa queries that can lead to backdating panics (#24051) [ty] Unions/intersections of gradual types should be assignable to `Never` (#24056) Fix incorrect path for ty_python_semantic in fuzzer (#24052) Bump 0.15.7 (#24049) [ty] ecosystem-analyzer: Fail on newly panicking projects (#24043) Don't show noqa hover for non-Python documents (#24040)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This showed up in #23761 with
Divergent | Any.