facebook / facebook/pyrefly

idea: maybe heuristic based function/method signature

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

Description

it's a bit common in old libraries.

like in flask

```py
def create_environ(*args: t.Any, **kwargs: t.Any) -> WSGIEnvironment:
```

this tells nothing, but

```py
builder = EnvironBuilder(*args, **kwargs)

try:
return builder.get_environ()
finally:
builder.close()
```

The body shows all the signatures.

Contributor guide

Open the contributing guide

Research direction

Start by examining how Pyrefly currently represents and reports Python function and method signatures, then compare that behavior with the Flask examples in the issue. Define the heuristic and its expected output before identifying the relevant implementation and tests; done means signatures expose useful information from the function body without relying only on *args and **kwargs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
developer-experience, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.