KotlinIsland / KotlinIsland/basedmypy
`ClassVar` shouldn't need explicit annotation
Open
feature
- Dominant language
- Python
- Stars
- 202
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
```py
class A:
a: ClassVar = 1
reveal_type(A.a) # Expression has type "Any (from omitted generics)"
```
Contributor guide
Research direction
Start by reproducing the provided ClassVar example with basedmypy and inspect the type-checking path responsible for omitted ClassVar generics. The work is done when reveal_type(A.a) reports the intended class-variable type instead of Any; the issue names no source file or test to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100