KotlinIsland / KotlinIsland/basedmypy

use any usage as inference information

Open
#684 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.