facebook / facebook/pyrefly

support append inlay hint at end of line

Open
#4,182 1 comment 0 reactions 0 assignees View on GitHub
language-server needs-discussion
Dominant language
Rust
Stars
7k
Forks
516
PR merge metrics
No merged PRs in 30d

Description

when type is too long, this helps ( like union type, generic, etc)

```
class SomeVeryLonggggggggggggggggggggggggggggg:
...
def foo(): return SomeVeryLonggggggggggggggggggggggggggggg()

x = foo()
```

related in r-a https://github.com/rust-lang/rust-analyzer/issues/4318

Contributor guide

Open the contributing guide

Research direction

Start by reading the related rust-analyzer issue 4318 and tracing Pyrefly's inlay-hint handling for long types. Reproduce the class and function examples, then verify that the type hint can be appended at the end of the line for long union or generic types.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.