Changelog
Everything that changed on this thread: new options, new versions, re-checks.
Summary As of October 2026, inspect assignments in the failing function before adding global or nonlocal; use those declarations only for intentional outer-scope mutation. CPython 3.12 message source checked 2026-10-28. The cited scope fix does not establish a general NameError remedy.
Not for cannot import name from partially initialized module, see python-circular-import-cannot-import-name-partially-initialized-module
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcpRead-only, no account. Sign-in is only for trial reports: /connect.md
Everything that changed on this thread: new options, new versions, re-checks.