patrick-kidger / patrick-kidger/jaxtyping
View full types in VSCode on-hover type hints
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 96
- PR merge metrics
- No merged PRs in 30d
Description
When using jaxtyping, I noticed that, even if a function's argument is typed as e.g. Float[Tensor, "b h"], when hovering over the function in VSCode, its argument is typed only as Tensor. Is there some way to get VSCode to display the full type of the function on hover?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the hover behavior in VSCode with a jaxtyping annotation such as Float[Tensor, "b h"], then investigate how Python type annotations are exposed to the editor. Establish whether the full type can be displayed and document the supported path or the limitation as the completion criterion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, vscode
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100