ruff/crates/ty_python_semantic/resources/mdtest/expression
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
..
assert.md [ty] Uniformly use "not supported" in diagnostics (#21916) 2025-12-11 15:03:55 +00:00
attribute.md [ty] Improve error messages for unresolved attribute diagnostics (#20963) 2025-10-19 10:58:25 +01:00
boolean.md [ty] Uniformly use "not supported" in diagnostics (#21916) 2025-12-11 15:03:55 +00:00
if.md Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
lambda.md [ty] Improve rendering of default values for function args (#22010) 2025-12-16 13:39:19 -05:00
len.md [ty] Check method definitions on subclasses for Liskov violations (#21436) 2025-11-23 18:08:15 +00:00
yield_and_yield_from.md [ty] Use "cannot" consistently over "can not" (#21255) 2025-11-03 10:38:20 -05:00