KotlinIsland / KotlinIsland/basedmypy
silent crash with generic bound to itself
Open
crash
p-1
- Dominant language
- Python
- Stars
- 202
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
```py
from typing import TypeVar
Int = TypeVar("Int", bound=Int)
def f(i: Int): ...
```
Contributor guide
Research direction
Reproduce the issue with the provided Python snippet and determine how basedmypy handles a TypeVar whose bound refers to itself. Trace the checker behavior from that input and identify the expected non-silent outcome. Done means the snippet is handled without a silent crash and the behavior is covered by a regression test.
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
- 38/100