KotlinIsland / KotlinIsland/basedmypy

singular assignments in functions should become `Final`

Open
#583 0 comments 0 reactions 0 assignees View on GitHub
feature p-1
Dominant language
Python
Stars
202
Forks
6
PR merge metrics
No merged PRs in 30d

Description

```py
def f():
a = 1
b: 1 = a # error
```

This shouldn't be an error, `a` can never be modified.

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Start by reproducing the shown function and tracing the type-checker path for a single assignment with an annotation inside a function; done means the example is accepted while genuinely mutable assignments remain checked appropriately.

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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.