From 8ed593b954a520ac4699e065ee82fedc71d928e1 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Mon, 22 May 2017 16:23:18 -0700 Subject: [PATCH] Better way to fix evolve docs --- docs/api.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index ad6bb758..012bae6c 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -193,7 +193,7 @@ See :ref:`asdict` for examples. .. autofunction:: attr.evolve -For example: + For example: .. doctest:: @@ -210,12 +210,12 @@ For example: >>> i1 == i2 False - ``evolve`` creates a new instance using ``__init__``. - This fact has several implications: + ``evolve`` creates a new instance using ``__init__``. + This fact has several implications: - * private attributes should be specified without the leading underscore, just like in ``__init__``. - * attributes with ``init=False`` can't be set with ``evolve``. - * the usual ``__init__`` validators will validate the new values. + * private attributes should be specified without the leading underscore, just like in ``__init__``. + * attributes with ``init=False`` can't be set with ``evolve``. + * the usual ``__init__`` validators will validate the new values. .. autofunction:: validate