]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Clean up initialization __class_getitem__ with Py_GenericAlias. (GH-28450)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 19 Sep 2021 15:05:30 +0000 (18:05 +0300)
committerGitHub <noreply@github.com>
Sun, 19 Sep 2021 15:05:30 +0000 (18:05 +0300)
commitf25f2e2e8c8e48490d22b0cdf67f575608701f6f
tree5357fbf7251027bd5eed255a4f22639b0119d7a7
parenta6241773869b80f2b1cac63f26ba646aa808a8db
Clean up initialization __class_getitem__ with Py_GenericAlias. (GH-28450)

The cast to PyCFunction is redundant. Overuse of redundant casts
can hide actual bugs.
17 files changed:
Doc/c-api/typehints.rst
Modules/_collectionsmodule.c
Modules/_ctypes/_ctypes.c
Modules/_functoolsmodule.c
Modules/_queuemodule.c
Modules/_sre.c
Modules/itertoolsmodule.c
Modules/posixmodule.c
Objects/descrobject.c
Objects/dictobject.c
Objects/enumobject.c
Objects/genobject.c
Objects/listobject.c
Objects/setobject.c
Objects/tupleobject.c
Objects/weakrefobject.c
Python/context.c