ruff/crates/ty_python_semantic/resources/mdtest/call
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
..
annotation.md
builtins.md [ty] Infer precise types for isinstance(…) calls involving typevars (#21999) 2025-12-16 10:34:30 +01:00
callable_instance.md
callables_as_descriptors.md [ty] propagate classmethod-ness through decorators returning Callables (#21958) 2025-12-16 09:16:40 -08:00
constructor.md
dunder.md
dunder_import.md
function.md
getattr_static.md [ty] Improve rendering of default values for function args (#22010) 2025-12-16 13:39:19 -05:00
invalid_syntax.md
methods.md [ty] Improve rendering of default values for function args (#22010) 2025-12-16 13:39:19 -05:00
never.md
open.md [ty] support PEP 613 type aliases (#21394) 2025-11-20 17:59:35 -08:00
overloads.md [ty] Fix overload filtering to prefer more "precise" match (#21859) 2025-12-09 20:29:34 +05:30
replace.md [ty] Improve rendering of default values for function args (#22010) 2025-12-16 13:39:19 -05:00
str_startswith.md
subclass_of.md
union.md [ty] more detailed description of "Size limit on unions of literals" in mdtest (#21804) 2025-12-05 17:34:39 +00:00