<span>Hello,</span><div><br></div><div><span>Python v3.12 has added PyType_GetDict() API, which is used in SIP.</span></div><div><span>PyQt <span>for 3.12</span> gets a new reference from sipPyTypeDict(), not borrowed.</span></div><div><span>It seems like SIP or PyQt misses a decref for the dictionary.</span></div><div><br></div><div><span><a target="_blank" rel="noreferrer nofollow noopener" href="https://github.com/python/cpython/commit/a840806d338805fe74a9de01081d30da7605a29f">https://github.com/python/cpython/commit/a840806d338805fe74a9de01081d30da7605a29f</a></span></div><div><span><a target="_blank" rel="noreferrer nofollow noopener" href="https://www.riverbankcomputing.com/hg/sip/rev/d36867e54192">https://www.riverbankcomputing.com/hg/sip/rev/d36867e54192</a></span></div><div><br></div><div><br></div><div><span>Regards,</span></div><div><span>Ryo</span></div><span></span><br>