KotlinIsland / KotlinIsland/basedmypy
attribute types
Open
feature
problem :trollface:
- Dominant language
- Python
- Stars
- 202
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
```py
class A:
a: Final[int]
b: TypeCheckOnly[str]
class A2(A):
a: Final[bool]
class B[T: A]:
c: T.a
b: B[A2]
reveal_type(b.c) # bool
```
Contributor guide
Research direction
Reproduce the Python snippet with basedmypy and inspect the type-checking path for generic attribute access and inherited attribute types. Done means the example is accepted with reveal_type(b.c) reported as bool, with regression coverage added for the demonstrated behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100