Files
astral-ruff/crates/ruff_python_stdlib/src
Vivek Khimani dd6d843057 [pyflakes] Recognize frozendict as a builtin for Python 3.15+ (#24100)
## 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
```
2026-03-21 23:47:18 +00:00
..
2025-05-16 13:25:28 +02:00