KotlinIsland / KotlinIsland/basedmypy
Only show any expr errors from resultant expressions, not intermediate expressions
Open
feature
topic-any
- Dominant language
- Python
- Stars
- 202
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
```py
a: list[Any] = []
a.clear() # expect no error
a # expect error
```
Contributor guide
Research direction
Start by locating the type-checking path for the `list[Any]` example, especially how `a.clear()` and the standalone `a` expression are analyzed. Confirm the current diagnostics, then make the behavior match the stated expectations: no error for the intermediate method call and an error for the resultant expression.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100