ruff/crates/ty_python_semantic/resources/mdtest/external
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
..
README.md [ty] mdtests with external dependencies (#20904) 2025-12-08 11:44:20 +01:00
attrs.md [ty] mdtests with external dependencies (#20904) 2025-12-08 11:44:20 +01:00
numpy.md [ty] mdtests with external dependencies (#20904) 2025-12-08 11:44:20 +01:00
pydantic.md [ty] Improve rendering of default values for function args (#22010) 2025-12-16 13:39:19 -05:00
pytest.md [ty] mdtests with external dependencies (#20904) 2025-12-08 11:44:20 +01:00
sqlalchemy.md [ty] Infer type variables within generic unions (#21862) 2025-12-09 16:22:59 +01:00
sqlmodel.md [ty] Type inference for `@asynccontextmanager` (#21876) 2025-12-09 22:49:00 +01:00
strawberry.md [ty] Improve rendering of default values for function args (#22010) 2025-12-16 13:39:19 -05:00

README.md

mdtests with external dependencies

This directory contains mdtests that make use of external packages. See the mdtest README.md for more information.