KotlinIsland / KotlinIsland/basedmypy

`ClassVar` shouldn't need explicit annotation

Open
#586 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.