ruff/crates/ty_python_semantic
Hugo 3ec63b964c
[ty] Add support for dict(...) calls in typed dict contexts (#22113)
## Summary

fixes https://github.com/astral-sh/ty/issues/2127
- handle `dict(...)` calls in TypedDict context with bidirectional
inference
- validate keys/values using the existing TypedDict constructor implem
- mdtest: add 1 positive test, 1 negative test for invalid coverage

## Test Plan

```sh
cargo clippy --workspace --all-targets --all-features -- -D warnings  # Rust linting
cargo test  # Rust testing
uvx pre-commit run --all-files --show-diff-on-failure  # Rust and Python formatting, Markdown and Python linting, etc.
```
fully green
2025-12-20 07:59:03 -08:00
..
resources [ty] Add support for dict(...) calls in typed dict contexts (#22113) 2025-12-20 07:59:03 -08:00
src [ty] Add support for dict(...) calls in typed dict contexts (#22113) 2025-12-20 07:59:03 -08:00
tests [ty] Use datatest instead of dirtest (#21937) 2025-12-18 18:05:02 +00:00
Cargo.toml [ty] Use datatest instead of dirtest (#21937) 2025-12-18 18:05:02 +00:00
mdtest.py [ty] Lockfiles for mdtests with external dependencies (#22077) 2025-12-19 14:29:52 +01:00
mdtest.py.lock Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00