KotlinIsland / KotlinIsland/basedmypy
don't infer collections as `Any` in an `Any` context
Open
p-1
topic-any
topic-inference
- Dominant language
- Python
- Stars
- 202
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
```py
a: Any = [1] # error: list[Any]
```
Contributor guide
Research direction
The issue names no files, tests, or entry points. Start by locating the type-inference handling for collection literals assigned in an Any context, then add coverage for the shown `a: Any = [1]` case and verify that it reports `list[Any]` rather than inferring the collection as Any.
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
- Needs clarification
- Newbie friendliness
- 35/100