Skip to content

Dataclass frozen documentation mention an non-existing section #137900

@Viicos

Description

@Viicos

Documentation

The documentation of the dataclass frozen argument:

- *frozen*: If true (the default is ``False``), assigning to fields will
generate an exception. This emulates read-only frozen instances. If
:meth:`~object.__setattr__` or :meth:`~object.__delattr__` is defined in the class, then
:exc:`TypeError` is raised. See the discussion below.

mentions:

See the discussion below.

But I can't find any discussion related to this in the documentation. Seems like this was introduced in the initial version of the documentation from #6886.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions