parent
cd24cee7b4
commit
3ae7c5bec5
|
@ -322,8 +322,8 @@ object directly. Its documented attributes are:
|
|||
- ``type``: The type of the field.
|
||||
|
||||
- ``default``, ``default_factory``, ``init``, ``repr``, ``hash``,
|
||||
``compare``, and ``metadata`` have the identical meaning as they do
|
||||
in the ``field()`` declaration.
|
||||
``compare``, and ``metadata`` have the identical meaning as they do
|
||||
in the ``field()`` declaration.
|
||||
|
||||
Other attributes may exist, but they are private.
|
||||
|
||||
|
@ -636,8 +636,8 @@ workarounds:
|
|||
- Manually add ``__slots__`` in the class definition.
|
||||
|
||||
- Write a function (which could be used as a decorator) that
|
||||
inspects the class using ``fields()`` and creates a new class with
|
||||
``__slots__`` set.
|
||||
inspects the class using ``fields()`` and creates a new class with
|
||||
``__slots__`` set.
|
||||
|
||||
For more discussion, see [#]_.
|
||||
|
||||
|
|
Loading…
Reference in New Issue