mirror of
https://github.com/astral-sh/ruff.git
synced 2026-05-06 08:56:57 -04:00
dd6d843057
## Summary Register `frozendict` (PEP 814) as a version-gated builtin for Python 3.15+, fixing `F821` when `target-version = "py315"` Closes #24095 ## Test plan - `frozendict` with `target-version >= py315` → no diagnostic - `frozendict` with `target-version < py315` → `F821` with version hint suggesting `py315` - Existing version-gated builtin tests still pass (e.g. `PythonFinalizationError`, `__annotate__`) ## Local run ```──────────── Nextest run ID ab77447d-80be-48fe-ba42-d98e29697619 with nextest profile: default Starting 2 tests across 1 binary (2697 tests skipped) PASS [ 0.049s] ruff_linter rules::pyflakes::tests::f821_frozendict_py315_available PASS [ 0.254s] ruff_linter rules::pyflakes::tests::f821_frozendict_pre_py315_undefined ```