gh-89653: PEP 670: Limited API doesn't cast arguments (GH-92654)


The limited API version 3.11 no longer casts arguments to expected
types of functions of functions:

* PyList_GET_SIZE(), PyList_SET_ITEM()
* PyTuple_GET_SIZE(), PyTuple_SET_ITEM()
* PyWeakref_GET_OBJECT()
(cherry picked from commit 7d3b469e475e6e52ce4f0bad7198bb05ead77b1d)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 files changed