SIGN IN SIGN UP

[mypyc] Fix unsafe borrowing of instance attributes with free-threading (#21688)

Don't borrow native attributes any more, except for final native
attributes (these can't be rebound, so they are safe to borrow), and
attributes with `vec` types (`vec` requires explicit synchronization by
design).

Work on mypyc/mypyc#1203.

I used coding agent assist for this, but manually reviewed changes.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
J
Jukka Lehtosalo committed
cfc07346408d92ac91c18e3698c74b9c0d3a4a65
Parent: c07d788
Committed by GitHub <noreply@github.com> on 7/7/2026, 11:39:10 AM