[ty] Support property tests for BoundSuper#18066
[ty] Support property tests for BoundSuper#18066cake-monotone wants to merge 2 commits intoastral-sh:mainfrom
BoundSuper#18066Conversation
|
|
Can you run with |
Okay! |
|
I tried it out and got an error related to tuple. It seems like I think this is a related issue with #18004. Similar to #18004, we could temporarily work around this by disabling the following code: ruff/crates/ty_python_semantic/src/types/property_tests/type_generation.rs Lines 321 to 325 in 5f3d8f6 But the quality of the daily property tests might suffer a bit until it's properly fixed. |
I think this is correct based on our current definition of the tuple type as including potential user subclasses of What specific property test does this end up failing? |
which means At this moment, its because:
However, its because:
If my understanding is correct, two things need to be addressed:
|
|
Sorry for delay getting back to this. Our latest thinking is that we do want empty tuple to continue to be a subtype of |
|
I'm closing this due to inactivity. Please feel free to comment in case it should be re-opened. |
Summary
This PR includes the following changes:
Fix incorrect
disjoint_frombehavior forBoundSupertypes with dynamic parametersAdd
Ty::BoundSupercases to property testsTest Plan
BoundSuperQUICKCHECK_TESTS=10000 cargo test -p ty_python_semantic -- --ignored types::property_tests::stablecargo test -p ty_python_semantic --test mdtest -- disjoint