KotlinIsland / KotlinIsland/basedmypy
generic type alias contains `Any`
Open
feature
topic-any
- Dominant language
- Python
- Stars
- 202
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
```py
from typing import TypeAlias, TypeVar
T = TypeVar('T', bound=bool)
ListBool: TypeAlias = list[T] # expression contains Any (has type "type[list[Any]]")
```
Contributor guide
Research direction
Reproduce the reported diagnostic with the provided Python snippet and inspect the type-alias handling path in basedmypy. The issue names no source files or tests, so first locate the relevant implementation and existing regression tests; done means the alias no longer reports an Any type while preserving the bound TypeVar behavior.
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
- 35/100