Skip to content

[ty] Add playground command to toggle inlay hints - #28517

Merged
sharkdp merged 1 commit into
mainfrom
codex/ty-playground-toggle-inlay-hints
Sep 11, 2026
Merged

sharkdp merged 1 commit into
mainfrom
codex/ty-playground-toggle-inlay-hints

Conversation

@sharkdp

@sharkdp sharkdp commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add a Toggle Inlay Hints command to the ty playground's editor command palette (F1). It toggles variable-type and argument-name hints together. I sometimes find that useful when inlay hints become too verbose.

Screenshots

image image

Test Plan

Interactive, see screenshots above.

@sharkdp sharkdp added the ty The ty type checker label Sep 11, 2026
@astral-sh-bot astral-sh-bot Bot added the playground An issue or PR specific to the Ruff and/or ty playground label Sep 11, 2026
@sharkdp
sharkdp marked this pull request as ready for review September 11, 2026 08:52
@sharkdp
sharkdp requested a review from MichaReiser September 11, 2026 08:55

@MichaReiser MichaReiser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting that this isn't a built in action

@sharkdp
sharkdp merged commit 0097e6d into main Sep 11, 2026
49 checks passed
@sharkdp
sharkdp deleted the codex/ty-playground-toggle-inlay-hints branch September 11, 2026 09:34
carljm added a commit that referenced this pull request Sep 11, 2026
…aliases

* origin/main: (30 commits)
  [ty] Respect instance dictionary storage for slotted classes (#27749)
  Add a GitHub repository threat model for Ruff (#28395)
  [ty] Preserve wrapped signatures in nominal descriptor checks (#28466)
  [ty] Avoid rebinding extracted method calls (#28469)
  Recognize quoted types in `typing.TypeForm` (#28507)
  Support conditional assignment to `__lazy_modules__` (#28491)
  Add support for `__lazy_modules__` (#28459)
  [`pyupgrade`] Stop recommending deprecated `ByteString` aliases (`UP035`) (#28498)
  [ty] Anchor default exclude patterns at the project root (#28463)
  [ty] Add playground command to toggle inlay hints (#28517)
  [ty] Ignore divergent markers when detecting descriptors (#28514)
  [ty] Reuse rendered union elements when displaying types (#28494)
  [ty] Fix assignability of bounded typevars to intersection types (#28479)
  [ty] Retain package listings between resolution steps (#28278)
  Add accessors for comparison expressions (#28485)
  [ty] Refactor module resolution to use a `ModuleDirectory` abstraction. (#28418)
  [ty] Reduce retained AST memory by shrinking expressions (#28335)
  Bump version to 0.16.7 (#28496)
  Install rustfmt before linting releases (#28495)
  ensure prepare release changes pass prek (#28488)
  ...

# Conflicts:
#	crates/ty_python_semantic/src/types/bool.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

playground An issue or PR specific to the Ruff and/or ty playground ty The ty type checker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants