[mypyc] Fix free-threading race condition in argument parsing (#21613)
Global argument parser state initialization was missing synchronization. Don't use a mutex on the hot path as an optimization. Fixes #21578 (probably). I added a regression test that failed about 30% of time on master (on macOS). I used coding agent assist.
J
Jukka Lehtosalo committed
8b6642db9791428e158c31b4fd3ed8bc96832ccb
Parent: 0f9676e
Committed by GitHub <noreply@github.com>
on 6/15/2026, 1:47:10 PM