chore(deps-dev): bump cython from 3.1.4 to 3.2.2
Bumps cython from 3.1.4 to 3.2.2.
Release notes
Sourced from cython's releases.
3.2.2
No release notes provided.
3.2.1
No release notes provided.
3.2.0 (2025-11-05)
(Complete changelog for the 3.2.0 release, including pre-releases.)
Features added
Builtin exception types are now inferred. (Github issue :issue:
6908)The list of known, inferred and optimised Python builtins was updated.
rangeis now considered a type.ascii,bin,format,hex,octwere added as functions. (Github issue :issue:6931)The f-string syntax was extended according to PEP-701. (Github issue :issue:
5452)t-strings are implemented according to PEP-750. The implementation backports the template classes but prefers existing backports if installed separately. (Github issue :issue:
6811)Unknown return type annotations with
->are no longer rejected but produce warnings. This allows better integration with Python type hints that are not always usable for Cython.-> Noneis also allowed now. Patch by jpe. (Github issue :issue:6946)The runtime Python dispatch for fused functions is substantially faster. (Github issues :issue:
1385, :issue:6996)Freelists (via cdef class decorator and for internally used types such as
async) are now also used in the Limited API and with extension type specs enabled. (Github issue :issue:7151)Module imports now quickly check for an already imported module to speed up reimports. Patch by Lysandros Nikolaou. (Github issue :issue:
7035)Type checks on PEP-604 union types (
int | None) are optimised into separate checks. (Github issue :issue:6935)Assignments to the PEP-604 union type
float | Noneallow any suitable Python number as input and convert it to a Pythonfloatautomatically. (Github issue :issue:5750)
... (truncated)
Changelog
Sourced from cython's changelog.
3.2.2 (2025-11-30)
Features added
- The C-API declarations were updated to include the new
PyDict_*Ref()functions. (Github issue :issue:7291)Bugs fixed
Iteration over literal sequences and strings in generators generated invalid C code since 3.2.0. This was a regression due to the C array iteration optimisation in :issue:
6926, which is now disabled inside of generators. (Github issue :issue:7342)Calling special methods of known exception types failed with an
AttributeError. (Github issue :issue:7342)Calling the unbound
__mul__special method of builtin collections with subtypes failed. (Github issue :issue:7340)C string literals could generate invalid "const to non-const" casts in the C code. (Github issue :issue:
7346)
yieldis no longer allowed inside of acython.critical_section, but is now allowed while holding acython.pymutex. (Github issue :issue:7317)Under lock congestion, acquiring the GIL could crash in Python 3.11, part 2. This bug was introduced in Cython 3.2.0. (Github issue :issue:
7312)The new
py_safe_*functions inlibc.threadstriggered C compiler warnings. (Github issue :issue:7356)3.2.1 (2025-11-12)
Features added
- Cython now leaves markers about its utility code dependencies in the generated C code to help debugging "unused function" C compiler warnings. (Github issue :issue:
7294)Bugs fixed
... (truncated)
Commits
2a8ee41Prepare release of 3.2.2.de755acUpdate changelog.bb88e35Silence a C signedness conversion warning.8eaca89Disable optimisation into C array iteration for iterating string literals ins...a9a7be1CI: Trigger the sanitizers in the 3.2.x branch.c7e75d4CI: Add a missing trigger file for the sanitizers.41b9144Update changelog.928a41dAdd address/undefined behaviour/thread sanitizer tests (#7334)7eb8405CI: Move independent workflows out of CI workflow file (GH-7370)5d05168Add PyDict_*Ref APIs to cpython.dict (#7291)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)