KotlinIsland / KotlinIsland/basedmypy

Denotability for mutations

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

Description

#412 would benefit from denotability of mutations within functions:

```py
a = 0

@Mutates('a')
def foo():
global a
a = 1
```

This would help in stubs and in inheritance.

Contributor guide

Open the contributing guide

Research direction

Start by reading issue #412 and the mutation example in this issue. No files, tests, or entry points are named, so identify where the type checker handles Mutates annotations and function-scope global assignments. Done means mutations can be denoted within functions for stubs and inheritance.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.