mirror of
https://github.com/astral-sh/ruff
synced 2026-01-11 00:24:13 -05:00
## Summary An annotated assignment `name: annotation` without a right-hand side was previously not covered by the range returned from `DefinitionKind::full_range`, because we did expand the range to include the right-hand side (if there was one), but failed to include the annotation. ## Test Plan Updated snapshot tests
Markdown files within the mdtest/ subdirectory are tests of type inference and type checking;
executed by the tests/mdtest.rs integration test.
See crates/ty_test/README.md for documentation of this test format.