From 1a4b821b6b7e7ba0ef14790ce3e611f726c25eeb Mon Sep 17 00:00:00 2001 From: Kevin Zakka Date: Wed, 29 Jan 2025 08:50:24 -0800 Subject: [PATCH] [doc] Tweak language in asset dict paragraph. PiperOrigin-RevId: 720994183 Change-Id: Ib99cc3fdd02eefdb2d78d7ac5adf36293c001062 --- doc/python.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/python.rst b/doc/python.rst index af435395..64411e52 100644 --- a/doc/python.rst +++ b/doc/python.rst @@ -507,10 +507,9 @@ Note the ``from_string()`` and ``from_file()`` methods can only be called at con Assets ^^^^^^ -All three methods allow one to specify a dictionary of assets that will be used -to resolve asset references in the XML. The dictionary maps from asset -name (string) to asset data (bytes), and can be assigned to the ``assets`` -attribute before calling ``compile()``, as demonstrated below. +All three methods take in an optional argument called ``assets`` which is used +to resolve asset references in the XML. This argument is a dictionary that maps +asset name (string) to asset data (bytes), as demonstrated below: .. code-block:: python