cpython
cpython copied to clipboard
gh-99275: Fix `SystemError` in `ctypes` during `__initsubclass__`
During __initsubclass__ not all parts required by PyType_stgdict are ready.
This PR just sets a better error message, without changing the semantics of the type creation.
- Issue: gh-99275