KotlinIsland / KotlinIsland/basedmypy

Variables `Final` by default (`mutable` / `var`)

Open
#38 9 comments 2 reactions 0 assignees View on GitHub
basedtyping feature
Dominant language
Python
Stars
202
Forks
6
PR merge metrics
No merged PRs in 30d

Description

```py
a = 1
a = 2 # should be an error imo
```
```py
a: var = 1
a = 2 # yeah, that's ok
```

Contributor guide

Open the contributing guide

Research direction

Use the two Python examples as the behavioral specification: inspect the assignment and annotation/type-checking entry points, then find the existing tests for reassignment. Done means unannotated variables reject reassignment by default while `var` permits it, with tests covering both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.