Skip to content

Add support for frozendict in Python 3.15 #24095

@hugovk

Description

@hugovk

https://peps.python.org/pep-0814/ adds a new frozendict builtin type.

It's available for testing in Python 3.15 alpha 7:

cat 1.py
frozendict(x=1, y=2)ruff --version
ruff 0.15.6ruff check 1.py
F821 Undefined name `frozendict`
 --> 1.py:1:1
  |
1 | frozendict(x=1, y=2)
  | ^^^^^^^^^^
  |

Found 1 error.

Workaround for now, add to pyproject.toml:

[tool.ruff]
builtins = [ "frozendict" ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions