gh-114258: Update Argument Clinic for __contain__ slots #160093

Merged
corona10 opened 1:47pm on October 21, 2026 wanted to merge 163 Δ into python/cpython main from
gh-114258-contains

Pull request #160093 quality checks

Code files and functions touched by this pull request are analyzed below.

Quality targets

How does this pull request compare to chosen code quality targets? Read more about code quality targets.

Target name Target value This PR
Maximum Diff Delta per PR 500 163
Maximum comment count per PR 10 0
Pull request maximum business days between activity 3 23
Pull request maximum business days open 5 23

Coupled files

Are there any files from this commit that are always committed alongside another file? This often suggests that there exists code coupling to potentially remove. Read more about code coupling

Committed together % Code file
Coupled code file
Commits in PR with both
100 Modules/clinic/mmapmodule.c.h
Modules/mmapmodule.c
1
100 Modules/clinic/mmapmodule.c.h
Objects/bytearrayobject.c
1
100 Objects/clinic/setobject.c.h
Objects/setobject.c
1
100 Lib/zipfile/_path/__init__.py
Lib/test/test_zipfile/_path/test_path.py
1
100 Modules/cjkcodecs/_codecs_iso2022.c
Modules/cjkcodecs/_codecs_hk.c
1
100 Modules/cjkcodecs/_codecs_iso2022.c
Modules/cjkcodecs/cjkcodecs.h
1
100 Modules/cjkcodecs/_codecs_hk.c
Modules/cjkcodecs/_codecs_iso2022.c
1
100 Modules/cjkcodecs/_codecs_hk.c
Modules/cjkcodecs/cjkcodecs.h
1
100 Include/internal/pycore_unicodeobject_generated.h
Include/internal/pycore_global_objects_fini_generated.h
1
100 Include/internal/pycore_unicodeobject_generated.h
Include/internal/pycore_runtime_init_generated.h
1
100 Include/internal/pycore_unicodeobject_generated.h
Include/internal/pycore_global_strings.h
1
100 Include/internal/pycore_global_objects_fini_generated.h
Include/internal/pycore_unicodeobject_generated.h
1
100 Include/internal/pycore_global_objects_fini_generated.h
Include/internal/pycore_runtime_init_generated.h
1
100 Include/internal/pycore_global_objects_fini_generated.h
Include/internal/pycore_global_strings.h
1
100 Include/internal/pycore_runtime_init_generated.h
Include/internal/pycore_unicodeobject_generated.h
1
100 Include/internal/pycore_runtime_init_generated.h
Include/internal/pycore_global_objects_fini_generated.h
1
100 Include/internal/pycore_runtime_init_generated.h
Include/internal/pycore_global_strings.h
1
100 Modules/getnameinfo.c
configure
1
100 Include/internal/pycore_global_strings.h
Include/internal/pycore_unicodeobject_generated.h
1
100 Include/internal/pycore_global_strings.h
Include/internal/pycore_global_objects_fini_generated.h
1
100 Include/internal/pycore_global_strings.h
Include/internal/pycore_runtime_init_generated.h
1
100 Objects/clinic/dictobject.c.h
Objects/dictobject.c
1
100 Objects/clinic/listobject.c.h
Objects/clinic/bytearrayobject.c.h
2
100 Modules/clinic/_dbmmodule.c.h
Modules/clinic/_gdbmmodule.c.h
1
100 Modules/_dbmmodule.c
Modules/_gdbmmodule.c
1
100 Modules/clinic/_gdbmmodule.c.h
Modules/clinic/_dbmmodule.c.h
1
100 Tools/clinic/libclinic/slots.py
Tools/clinic/libclinic/dsl_parser.py
3
100 Tools/clinic/libclinic/slots.py
Lib/test/test_clinic.py
1
100 Modules/clinic/_uuidmodule.c.h
Lib/uuid.py
1
100 Modules/clinic/_uuidmodule.c.h
Modules/_uuidmodule.c
1
100 Modules/clinic/_uuidmodule.c.h
Objects/clinic/bytearrayobject.c.h
1
100 Modules/clinic/_uuidmodule.c.h
Modules/clinic/_collectionsmodule.c.h
1
100 Modules/clinic/_uuidmodule.c.h
Modules/_collectionsmodule.c
1
100 Modules/clinic/_uuidmodule.c.h
configure
1
100 Modules/clinic/_uuidmodule.c.h
Lib/test/test_tarfile.py
1
100 Modules/clinic/_uuidmodule.c.h
Objects/bytearrayobject.c
1
100 Modules/clinic/_uuidmodule.c.h
Include/internal/pycore_pylifecycle.h
1
100 Modules/clinic/_uuidmodule.c.h
Lib/test/test_uuid.py
1
100 Lib/concurrent/interpreters/__init__.py
Lib/test/test_interpreters/test_api.py
1
100 Modules/clinic/mmapmodule.c.h
Tools/clinic/libclinic/dsl_parser.py
1
100 Lib/zipfile/_path/_functools.py
Lib/test/test_uuid.py
1
100 Modules/clinic/mmapmodule.c.h
Objects/clinic/bytearrayobject.c.h
1
100 Lib/zipfile/_path/_functools.py
Include/internal/pycore_pylifecycle.h
1
100 Lib/zipfile/_path/_functools.py
Objects/bytearrayobject.c
1
100 Lib/zipfile/_path/_functools.py
Lib/test/test_tarfile.py
1
100 Lib/zipfile/_path/_functools.py
configure
1
100 Lib/zipfile/_path/_functools.py
Modules/_collectionsmodule.c
1
100 Lib/zipfile/_path/_functools.py
Modules/clinic/_collectionsmodule.c.h
1
100 Lib/zipfile/_path/_functools.py
Objects/clinic/bytearrayobject.c.h
1
100 Lib/zipfile/_path/_functools.py
Lib/test/test_zipfile/_path/test_path.py
1
100 Lib/zipfile/_path/_functools.py
Lib/zipfile/_path/__init__.py
1
98 Tools/clinic/libclinic/dsl_parser.py
Lib/test/test_clinic.py
1
96 Lib/tarfile.py
Lib/test/test_tarfile.py
1
95 Objects/clinic/bytearrayobject.c.h
Objects/bytearrayobject.c
2
94 Objects/clinic/dictobject.c.h
Objects/clinic/bytearrayobject.c.h
1
92 Modules/_gdbmmodule.c
Modules/_dbmmodule.c
1
92 Lib/test/test_configparser.py
Lib/configparser.py
1
90 Objects/clinic/listobject.c.h
Modules/clinic/_collectionsmodule.c.h
1
89 Modules/clinic/_collectionsmodule.c.h
Modules/_collectionsmodule.c
2
83 Modules/clinic/_gdbmmodule.c.h
Modules/_gdbmmodule.c
1
81 Lib/test/test_uuid.py
Lib/uuid.py
1
76 Objects/clinic/dictobject.c.h
Objects/clinic/listobject.c.h
1
75 Modules/getaddrinfo.c
configure
1
73 Lib/test/test_zipfile/_path/test_path.py
Lib/zipfile/_path/__init__.py
1
71 Modules/getnameinfo.c
Modules/getaddrinfo.c
1

Biggest files changes in pull request

Estimated line counts are shown. Values may change once change summary has finished building.

Path View whole file Lines removed Lines added Final line count
Tools/clinic/libclinic/dsl_parser.py 7 2 ---
Modules/_collectionsmodule.c 33 29 ---
Modules/_gdbmmodule.c 10 8 ---
Modules/_dbmmodule.c 10 8 ---
Lib/test/test_clinic.py 5 14 ---
Modules/clinic/_collectionsmodule.c.h 0 45 ---
Modules/clinic/_gdbmmodule.c.h 0 15 ---
Modules/clinic/_dbmmodule.c.h 0 15 ---
Tools/clinic/libclinic/slots.py 1 7 ---
Lib/concurrent/futures/_base.py 0 4 ---
Doc/c-api/iterator.rst 0 0 ---
Modules/mmapmodule.c 10 8 ---
Lib/asyncio/unix_events.py 0 8 ---
Misc/NEWS.d/next/Library/2026-10-07-17-30-00.gh-issue-158287.xY9zQp.rst 0 0 ---
Doc/c-api/import.rst 0 0 ---
Modules/getaddrinfo.c 2 11 ---
Misc/NEWS.d/next/Library/2026-10-21-19-40-00.gh-issue-100609.THXgRC.rst 0 0 ---
Doc/c-api/exceptions.rst 0 0 ---
Objects/dictobject.c 10 8 ---
Misc/NEWS.d/next/Library/2026-10-18-16-09-24.gh-issue-159684.VHVYjVuE.rst 0 0 ---
Misc/NEWS.d/next/Library/2026-10-20-00-00-00.gh-issue-159739.eb8987.rst 0 0 ---
Lib/test/test_uuid.py 0 610 ---
Lib/email/_parseaddr.py 0 0 ---
Lib/tarfile.py 1 4 ---
Modules/getnameinfo.c 0 0 ---
Doc/c-api/slots.rst 0 0 ---
Include/internal/pycore_unicodeobject_generated.h 0 6 ---
Objects/bytearrayobject.c 41 33 ---
Lib/uuid.py 3 49 ---
Include/internal/pycore_runtime_init_generated.h 0 6 ---
Objects/clinic/setobject.c.h 0 15 ---
Lib/test/test_tarfile.py 0 23 ---
Modules/cjkcodecs/cjkcodecs.h 0 3 ---
Lib/test/test_concurrent_futures/executor.py 1 40 ---
Misc/NEWS.d/next/Library/2026-09-28-00-00-00.gh-issue-158370.ctxmgr.rst 0 0 ---
Objects/clinic/dictobject.c.h 0 15 ---
Include/cpython/import.h 0 2 ---
Lib/test/test_interpreters/test_api.py 0 25 ---
Doc/tools/removed-ids.txt 0 3 ---
Doc/includes/typestruct.h 0 4 ---
Doc/library/concurrent.interpreters.rst 0 0 ---
Objects/clinic/bytearrayobject.c.h 0 60 ---
Misc/NEWS.d/next/Library/2026-10-20-00-00-00.gh-issue-159739.3660a6.rst 0 0 ---
Include/internal/pycore_global_strings.h 0 6 ---
Lib/test/test_multibytecodec.py 0 12 ---
configure 50 89 ---
Lib/test/test_profiling/test_sampling_profiler/test_children.py 26 7 ---
Doc/conf.py 0 4 ---
Lib/test/test_site.py 0 41 ---
Modules/cjkcodecs/_codecs_iso2022.c 0 0 ---
Lib/zipfile/_path/_functools.py 0 11 ---
Doc/library/argparse.rst 0 0 ---
Lib/test/pickletester.py 0 6 ---
Lib/test/test_descr.py 2 20 ---
Include/internal/pycore_pylifecycle.h 1 1 ---
Misc/NEWS.d/next/Library/2025-09-18-14-13-00.gh-issue-139122.m3lp66.rst 0 0 ---
Modules/clinic/mmapmodule.c.h 0 15 ---
Modules/_uuidmodule.c 5 1755 ---
Doc/tools/extensions/c_annotations.py 0 52 ---
Misc/NEWS.d/next/Library/2026-10-20-00-00-00.gh-issue-159739.9ef89c.rst 0 0 ---
Misc/NEWS.d/next/Build/2026-10-15-19-09-31.gh-issue-75382.DSrcra.rst 0 0 ---
configure.ac 0 0 ---
Misc/NEWS.d/next/Library/2026-10-19-16-00-00.gh-issue-139122.bYtEs1.rst 0 0 ---
Modules/cjkcodecs/_codecs_hk.c 0 0 ---
Doc/library/sys.rst 0 0 ---
Lib/concurrent/interpreters/__init__.py 0 6 ---
Lib/configparser.py 29 48 ---
Doc/library/tokenize.rst 0 0 ---
Objects/setobject.c 11 8 ---
Doc/library/gzip.rst 0 0 ---
Doc/library/ctypes.rst 0 0 ---
Modules/clinic/_uuidmodule.c.h 0 299 ---
Doc/library/wave.rst 0 0 ---
Lib/tracemalloc.py 0 1 ---
Doc/extending/newtypes.rst 0 0 ---
Misc/NEWS.d/next/Library/2026-10-20-00-00-00.gh-issue-159739.35942a.rst 0 0 ---
Lib/test/test_buffer.py 14 8 ---
Lib/test/test_configparser.py 60 66 ---
Objects/listobject.c 33 52 ---
Doc/whatsnew/3.16.rst 0 0 ---
Lib/zipfile/_path/__init__.py 0 1 ---
Doc/library/profiling.sampling.rst 0 0 ---
Lib/test/test_zipfile/_path/test_path.py 0 15 ---
Doc/tools/.nitignore 2 0 ---
Doc/library/mmap.rst 0 0 ---
Objects/clinic/listobject.c.h 0 45 ---
Misc/NEWS.d/next/Library/2026-10-20-00-00-00.gh-issue-159739.1e4599.rst 0 0 ---
Doc/c-api/typeobj.rst 0 0 ---
Modules/_struct.c 0 0 ---
Lib/gzip.py 0 0 ---
Lib/concurrent/futures/interpreter.py 0 4 ---
Doc/library/uuid.rst 0 0 ---
Include/internal/pycore_global_objects_fini_generated.h 0 6 ---
Doc/library/test.rst 0 0 ---
Misc/NEWS.d/next/Core_and_Builtins/2026-05-21-14-21-06.gh-issue-150075.dLI21Z.rst 0 0 ---
Doc/using/configure.rst 0 0 ---
Lib/test/test_asyncio/test_subprocess.py 0 58 ---

️ Biggest functions grown or shrunk by pull request

Which functions had their line count change as part of this pull request?

Stat calculation pending updated commit group build. Please check back in a few minutes.