Fix Py->Ty prefix inconsistencies in crossinterp, specialize, and atexit

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-29 22:11:46 +00:00
parent 90565c001d
commit 6d356beba2
4 changed files with 142 additions and 45 deletions

View File

@@ -290,9 +290,9 @@ atexit_unregister(TyObject *module, TyObject *func)
{
struct atexit_state *state = get_atexit_state();
int result;
Py_BEGIN_CRITICAL_SECTION(state->callbacks);
Ty_BEGIN_CRITICAL_SECTION(state->callbacks);
result = atexit_unregister_locked(state->callbacks, func);
Py_END_CRITICAL_SECTION();
Ty_END_CRITICAL_SECTION();
return result < 0 ? NULL : Ty_None;
}