KotlinIsland / KotlinIsland/basedmypy

don't infer collections as `Any` in an `Any` context

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.