Skip to content

[ty] Remove generic types from the daily property test run (for now)#18004

Merged
AlexWaygood merged 1 commit intomainfrom
alex/fix-property-test
May 11, 2025
Merged

[ty] Remove generic types from the daily property test run (for now)#18004
AlexWaygood merged 1 commit intomainfrom
alex/fix-property-test

Conversation

@AlexWaygood
Copy link
Member

Summary

Fixes astral-sh/ty#305.

As of #17832, we understand several classes as generic that we did not previously, including list and tuple. Instance-types for these classes don't yet pass our property tests, in part because of things such as we don't yet understand that list[Any] is not a fully static type. For now, let's make sure that we don't test these types in the daily property test run. We can add them back later when our generics implementation is further along.

Test Plan

QUICKCHECK_TESTS=100000 cargo test --release -p ty_python_semantic -- --ignored types::property_tests::stable

@AlexWaygood AlexWaygood added internal An internal refactor or improvement testing Related to testing Ruff itself ty Multi-file analysis & type inference labels May 10, 2025
@github-actions
Copy link
Contributor

github-actions bot commented May 10, 2025

mypy_primer results

No ecosystem changes detected ✅

@AlexWaygood
Copy link
Member Author

Merging without review because otherwise the property tests will fail again in a few hours. Happy to address any post-merge comments in a followup!

@AlexWaygood AlexWaygood force-pushed the alex/fix-property-test branch from edcf9b7 to 045ee60 Compare May 11, 2025 09:24
@AlexWaygood AlexWaygood enabled auto-merge (squash) May 11, 2025 09:24
@AlexWaygood AlexWaygood merged commit ff7ebec into main May 11, 2025
34 checks passed
@AlexWaygood AlexWaygood deleted the alex/fix-property-test branch May 11, 2025 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement testing Related to testing Ruff itself ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Daily property test run failed on Sat May 10 2025

1 participant

Comments