Skip to content

[mypyc] Make instance attribute read-only at runtime if Final#21666

Merged
JukkaL merged 1 commit into
masterfrom
mypyc-final-enforce
Jul 1, 2026
Merged

[mypyc] Make instance attribute read-only at runtime if Final#21666
JukkaL merged 1 commit into
masterfrom
mypyc-final-enforce

Conversation

@JukkaL

@JukkaL JukkaL commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Previously this was only enforced statically. I plan to add more optimizations that take advantage of Final in the future.

Currently this was only enforced statically. This is important, since
we plan to perform more optimizations in the presence of Final in the
future.
@JukkaL JukkaL merged commit a6eadee into master Jul 1, 2026
18 checks passed
@JukkaL JukkaL deleted the mypyc-final-enforce branch July 1, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants