KotlinIsland / KotlinIsland/basedmypy
use any usage as inference information
Open
feature
topic-inference
- Dominant language
- Python
- Stars
- 202
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
```py
def f():
a = [1] # inferred as list[object] because of it's usage later
b: list[object] = a
```
- super issue of #519
Contributor guide
Research direction
Start with the example in the issue and read the related issue #519 to understand the intended inference behavior. Identify where basedmypy gathers type-inference information for later usage, then verify that the example's assignment produces the expected inferred type and add coverage for the demonstrated case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100