KotlinIsland / KotlinIsland/basedmypy

Figure out overloads automatically

Open
#674 2 comments 1 reaction 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(value: str, optional=False):
if value.startswith("a"):
if optional:
return None
raise ValueError
return value
```
This should find the two overloads automatically.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by reproducing the supplied Python example and determine how the checker currently handles the two behaviors; done should mean it automatically recognizes both overloads with clear expected typing results.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.