ruff/crates/ty_python_semantic/resources/mdtest/directives
Ibraheem Ahmed 2ce3aba458
[ty] Use annotated parameters as type context (#20635)
## Summary

Use the type annotation of function parameters as bidirectional type
context when inferring the argument expression. For example, the
following example now type-checks:

```py
class TD(TypedDict):
    x: int

def f(_: TD): ...

f({ "x": 1 })
```

Part of https://github.com/astral-sh/ty/issues/168.
2025-10-03 17:14:51 -04:00
..
assert_never.md [ty] Infer slightly more precise types for comprehensions (#20111) 2025-08-27 13:21:47 +01:00
assert_type.md [ty] Use annotated parameters as type context (#20635) 2025-10-03 17:14:51 -04:00
cast.md [ty] highlight the argument in `static_assert` error messages (#19426) 2025-07-23 08:24:12 -07:00