ruff/crates/ty_python_semantic/resources/mdtest/exception
Aria Desires ad3de4e488
[ty] Improve rendering of default values for function args (#22010)
## Summary

We're actually quite good at computing this but the main issue is just
that we compute it at the type-level and so wrap it in `Literal[...]`.
So just special-case the rendering of these to omit `Literal[...]` and
fallback to `...` in cases where the thing we'll show is probably
useless (i.e. `x: str = str`).

Fixes https://github.com/astral-sh/ty/issues/1882
2025-12-16 13:39:19 -05:00
..
basic.md [ty] Improve diagnostics for invalid exceptions (#21475) 2025-11-15 22:12:00 +00:00
control_flow.md [ty] Improve rendering of default values for function args (#22010) 2025-12-16 13:39:19 -05:00
except_star.md [ty] Raise `invalid-exception-caught` even when exception is not captured (#18202) 2025-05-19 18:13:34 -04:00
invalid_syntax.md [ty] Filter out `revealed-type` and `undefined-reveal` diagnostics from mdtest snapshots (#20820) 2025-10-12 18:39:32 +00:00