Skip to content

[mypyc] Document behavior of allow_interpreted_subclasses - #22064

Merged
JukkaL merged 1 commit into
python:masterfrom
p-sawicki:document-allow-interpreted-subclasses-surprises
Sep 29, 2026
Merged

JukkaL merged 1 commit into
python:masterfrom
p-sawicki:document-allow-interpreted-subclasses-surprises

Conversation

@p-sawicki

@p-sawicki p-sawicki commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Document possible surprises arising when using @mypyc_attr(allow_interpreted_subclasses=True):

  • Setting value of an inherited attribute at class level does not update the native attribute
  • Overriding a @final method has no effect in native code

@JukkaL
JukkaL merged commit bc2b303 into python:master Sep 29, 2026
2 checks passed
@p-sawicki
p-sawicki deleted the document-allow-interpreted-subclasses-surprises branch September 29, 2026 09:07
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