mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-21 12:16:15 +08:00
Fix PLW0133's Python version gating for `ImportCycleError`. `ImportCycleError` was added in Python 3.15, but Ruff currently treats it as available starting in Python 3.13. This updates the builtin exception classification so that: - `PythonFinalizationError` remains available for Python 3.13+ - `ImportCycleError` is only considered available for Python 3.15+ Also adds regression coverage for the behavior across target Python versions. Closes part of #28206.
ruff_python_stdlib
This crate is an internal component of Ruff. The Rust API exposed here is unstable and will have frequent breaking changes.
This version (0.0.12) is a component of Ruff 0.16.6. The source can be found here.
See Ruff's crate versioning policy for details on versioning.