KotlinIsland / KotlinIsland/basedmypy

basedmypy doesnt understand that overloads are named

Open
#771 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
202
Forks
6
PR merge metrics
No merged PRs in 30d

Description

```py
from typing import overload

class Foo:
@overload
def f(self, x: int): ...
@overload
def f(self, x: str): ...
def f(self, x: object): ...

Foo().f.__name__
```

Contributor guide

Open the contributing guide

Research direction

Start by running the provided Python snippet through basedmypy and capture the diagnostic for Foo().f.__name__. Trace the handling of overloaded methods from that entry point; the issue is done when the checker correctly understands the overloaded method's name without reporting the demonstrated problem.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.