Skip to content

[cffi] Bump to 2.1.* - #16247

Merged
srittau merged 2 commits into
python:mainfrom
ekanshul:bump-cffi-2-1
Aug 20, 2026
Merged

[cffi] Bump to 2.1.*#16247
srittau merged 2 commits into
python:mainfrom
ekanshul:bump-cffi-2-1

Conversation

@ekanshul

@ekanshul ekanshul commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Closes #15981

Bump cffi to 2.1.*, adding a stub for the new cffi.gen_src entry-point module and the new recompiler.FREE_THREADED_BUILD constant, and typing USE_LIMITED_API as Final[bool] since it depends on the platform and free-threading.

Agent used: Claude Code

cffi 2.1 adds a public cffi.gen_src module (a thin entry point for
`python -m cffi.gen_src`; the implementation lives in the private
cffi._cffi_gen_src module) and a new recompiler.FREE_THREADED_BUILD
constant read from sysconfig.get_config_var("Py_GIL_DISABLED").

USE_LIMITED_API depends on the platform and on whether the build is
free-threaded (it was already False on free-threaded builds in 2.0),
so `Final = True` was never accurate; type it as a plain bool.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau
srittau merged commit 5ce11e3 into python:main Aug 20, 2026
74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants