ruff/crates/ty_python_semantic/resources/mdtest/generics/pep695
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
..
aliases.md [ty] improve bad specialization results & error messages (#21840) 2025-12-11 19:21:34 -08:00
classes.md [ty] Avoid stack overflow when calculating inferable typevars (#21971) 2025-12-15 10:25:33 -05:00
functions.md [ty] Infer typevar specializations for `Callable` types (#21551) 2025-12-16 09:16:49 -08:00
paramspec.md [ty] Improve rendering of default values for function args (#22010) 2025-12-16 13:39:19 -05:00
variables.md [ty] Infer typevar specializations for `Callable` types (#21551) 2025-12-16 09:16:49 -08:00
variance.md [ty] impl `VarianceInferable` for `KnownInstanceType` (#20924) 2025-10-17 21:12:19 +02:00