[cffi] Bump to 2.1.* - #16247
Merged
Merged
Conversation
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>
This comment has been minimized.
This comment has been minimized.
Contributor
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
srittau
approved these changes
Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #15981
Bump cffi to 2.1.*, adding a stub for the new
cffi.gen_srcentry-point module and the newrecompiler.FREE_THREADED_BUILDconstant, and typingUSE_LIMITED_APIasFinal[bool]since it depends on the platform and free-threading.Agent used: Claude Code