Skip to content

[ty] Add test case for fixed panic#21832

Merged
AlexWaygood merged 1 commit intomainfrom
alex/panic-test
Dec 7, 2025
Merged

[ty] Add test case for fixed panic#21832
AlexWaygood merged 1 commit intomainfrom
alex/panic-test

Conversation

@AlexWaygood
Copy link
Member

Summary

We used to panic on this snippet, but we no longer do. The only thing left to do is to add a test case ensuring that we never do so again!

Closes astral-sh/ty#899

Test Plan

I ran cargo run -p ty check --python-version=3.14 and cargo run -p ty check --python-version=3.9 on this snippet. Neither panics anymore.

@AlexWaygood AlexWaygood added the testing Related to testing Ruff itself label Dec 7, 2025
@AlexWaygood AlexWaygood requested a review from dcreager as a code owner December 7, 2025 15:53
@AlexWaygood AlexWaygood added the ty Multi-file analysis & type inference label Dec 7, 2025
@AlexWaygood AlexWaygood enabled auto-merge (squash) December 7, 2025 15:53
@astral-sh-bot
Copy link

astral-sh-bot bot commented Dec 7, 2025

Diagnostic diff on typing conformance tests

No changes detected when running ty on typing conformance tests ✅

@astral-sh-bot
Copy link

astral-sh-bot bot commented Dec 7, 2025

mypy_primer results

No ecosystem changes detected ✅

No memory usage changes detected ✅

@AlexWaygood AlexWaygood merged commit 857fd4f into main Dec 7, 2025
42 checks passed
@AlexWaygood AlexWaygood deleted the alex/panic-test branch December 7, 2025 15:58
dcreager added a commit that referenced this pull request Dec 7, 2025
* origin/main:
  [ty] Add test case for fixed panic (#21832)
  [ty] Avoid double-analyzing tuple in `Final` subscript (#21828)
  [flake8-bandit] Fix false positive when using non-standard `CSafeLoader` path (S506). (#21830)
  Add minimal-size build profile (#21826)
dcreager added a commit that referenced this pull request Dec 7, 2025
* origin/main:
  [ty] Add test case for fixed panic (#21832)
  [ty] Avoid double-analyzing tuple in `Final` subscript (#21828)
  [flake8-bandit] Fix false positive when using non-standard `CSafeLoader` path (S506). (#21830)
  Add minimal-size build profile (#21826)
  [ty] Allow `tuple[Any, ...]` to assign to `tuple[int, *tuple[int, ...]]` (#21803)
  [ty] Support renaming import aliases (#21792)
  [ty] Add redeclaration LSP tests (#21812)
  [ty] more detailed description of "Size limit on unions of literals" in mdtest (#21804)
  [ty] Complete support for `ParamSpec` (#21445)
  [ty] Update benchmark dependencies (#21815)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

type: type = … fails with deferred annotations

1 participant