gh-56499: Update the pickle library's note section for the __setstate__ function (GH-101062)

This commit is contained in:
Furkan Onder 2024-02-17 13:51:43 +03:00 committed by GitHub
parent debb1386be
commit d5a30a1777
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -653,8 +653,8 @@ methods:
.. note::
If :meth:`__getstate__` returns a false value, the :meth:`__setstate__`
method will not be called upon unpickling.
If :meth:`__reduce__` returns a state with value ``None`` at pickling,
the :meth:`__setstate__` method will not be called upon unpickling.
Refer to the section :ref:`pickle-state` for more information about how to use