ruff
553e9a08 - [ty] suppress type inlay hints for leading-underscore assignments (#22855)

Commit
187 days ago
[ty] suppress type inlay hints for leading-underscore assignments (#22855) ## Summary Ref : https://github.com/astral-sh/ty/issues/2610 (at least as a first iteration of the feature, non-configurable for now) Suppress type inlay hints for assignments to leading-underscore names to reduce noise, while allowing dunder assignments to keep their hints. Add snapshot tests to cover simple assignments and tuple unpacking ## Test Plan Used `cargo insta` to generate snapshot tests for: - Leading-underscore assignments (`_`, `_ignored`, `__ignored`) produce no type inlay hints - Tuple assignments only suppress hints on leading-underscore targets, not on other targets - Dunder assignment (eg. `__special__`) still shows a type inlay hint <img width="382" height="106" alt="image" src="https://github.com/user-attachments/assets/7f71e88a-8e12-4025-bba7-87120bf877e5" />
Author
Parents
Loading