Skip to content

Commit

Permalink
Avoid attr.attr.frozen and attr.attr.mutable in Sphinx object invento…
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky authored Oct 12, 2021
1 parent 124c20c commit 68be706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -715,13 +715,13 @@ Since the Python ecosystem has settled on the term ``field`` for defining attrib
The new APIs build on top of them.

.. autofunction:: attr.define
.. function:: attr.mutable(same_as_define)
.. function:: mutable(same_as_define)

Alias for `attr.define`.

.. versionadded:: 20.1.0

.. function:: attr.frozen(same_as_define)
.. function:: frozen(same_as_define)

Behaves the same as `attr.define` but sets *frozen=True* and *on_setattr=None*.

Expand Down

0 comments on commit 68be706

Please sign in to comment.