KotlinIsland / KotlinIsland/basedmypy
overload not accepted as override
Open
upstream
- Dominant language
- Python
- Stars
- 202
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
```py
from typing import overload, override
class A:
def f(self, x: float = 0.0): ...
class B(A):
@overload
def f(self): ...
@overload
def f(self, x: float): ...
@override
def f(self, x: float = 0.0): ...
```
Contributor guide
Research direction
Start by reproducing the Python snippet with the type checker and confirm that the overload-based override is rejected. Locate the checker path handling @overload and @override, then add a regression test for this example. Done means the shown override is accepted without weakening unrelated override checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 40/100