mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-21 20:29:20 +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.