From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id CAAF24570F;
	Thu,  1 Aug 2024 11:18:53 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 95AF542F93;
	Thu,  1 Aug 2024 11:18:45 +0200 (CEST)
Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com
 [209.85.167.41]) by mails.dpdk.org (Postfix) with ESMTP id 42B574014F
 for <dev@dpdk.org>; Thu,  1 Aug 2024 11:18:43 +0200 (CEST)
Received: by mail-lf1-f41.google.com with SMTP id
 2adb3069b0e04-530ae4ef29dso3605569e87.3
 for <dev@dpdk.org>; Thu, 01 Aug 2024 02:18:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=pantheon.tech; s=google; t=1722503923; x=1723108723; darn=dpdk.org;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=LwaQnrtHI21+U9shWpbacDSGYdi1qS0GV2KpGbcXNSM=;
 b=HNvNpW7El3B4rMHnDooQuGtvlTwcrCTFUL1aqZZHmHIUxSxhos0mLRrybCCwtGeQkk
 N//hqaNNfJFik/EB3uZlNaKFFDmbQpDPyNTRPmDUQBOiyr0aXxVKHC4MArWu2WqBbDWU
 rnilnWlJwQwKXtpFqTClx8SLbcCI243n907Frn34F/VasJWXqhT0+Zx5Sqptn353bUFr
 Q/72tszOVyRkijChtMhalUt4RtDPael8nBfaIhTDMT2saagtsE0qJQ5gd8esWRXFXsMm
 c11BgjK0cGYl560+hcmDkrvEDVviF6R/PhGHVMKr7hcpV8vDUjB2xpwZbke2S7IdOfcI
 WTrQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1722503923; x=1723108723;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=LwaQnrtHI21+U9shWpbacDSGYdi1qS0GV2KpGbcXNSM=;
 b=WT4QqyrVthcDxe/XEgN6m1GY9qQG0fHtOrlxklOIMFCmk31ZVr227Ecgz8MH8rwq60
 i4PVva7qro8bBHa4ZMaK6m3uHlnPrdpOpBA8i3Lym9KqYfXVDSleAvgFi4KHlphol4wu
 cFR+3FAiN1rf+O4rFwPyU9svIakd0rgXuBLPcMwT8h0QliLsOWNYlbbf95R8r0m+f7qA
 u89R7R7wIU15/Y92y/lsDCkGCp+z87O0g8B8LnK2GlpX0Bqi0D1UGCYgQ4Qk7CQfykka
 Lcu3W1DsXYe0vPyMDKE3iKQLoQFScKw7bDKoKVZaG4xIbAVI1eyUkqNXddv2IJYpN2ft
 dFvA==
X-Gm-Message-State: AOJu0YyB0jU/rL7hkzZYU8CkDCK/JsgR59pP7n/zmJ0FRFKOBbdfqo+2
 J4KOPWDCp6/L5b7ujXORNdeH8FaH1khaPjx5wE11DrLqXfuRKaijtOcq0wPPB4Y=
X-Google-Smtp-Source: AGHT+IG3uA1wcEO8T6dCHoLvtTQnAfB/ydoITWuODk8TrKQEWwtPt93g5iwpFMGVaPP3YMmDv9fKYw==
X-Received: by 2002:a19:435d:0:b0:52c:df83:a740 with SMTP id
 2adb3069b0e04-530b61c01e9mr1076784e87.30.1722503922437; 
 Thu, 01 Aug 2024 02:18:42 -0700 (PDT)
Received: from localhost.localdomain ([84.245.121.236])
 by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-a7acad9127esm883830766b.149.2024.08.01.02.18.41
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 01 Aug 2024 02:18:42 -0700 (PDT)
From: =?UTF-8?q?Juraj=20Linke=C5=A1?= <juraj.linkes@pantheon.tech>
To: thomas@monjalon.net, Honnappa.Nagarahalli@arm.com,
 bruce.richardson@intel.com, jspewock@iol.unh.edu, probb@iol.unh.edu,
 paul.szczepanek@arm.com, Luca.Vizzarro@arm.com, npratte@iol.unh.edu
Cc: dev@dpdk.org, =?UTF-8?q?Juraj=20Linke=C5=A1?= <juraj.linkes@pantheon.tech>,
 luca.vizzarro@arm.com
Subject: [PATCH v9 1/5] dts: update params and parser docstrings
Date: Thu,  1 Aug 2024 11:18:35 +0200
Message-Id: <20240801091839.178306-2-juraj.linkes@pantheon.tech>
X-Mailer: git-send-email 2.34.1
In-Reply-To: <20240801091839.178306-1-juraj.linkes@pantheon.tech>
References: <20231115133606.42081-1-juraj.linkes@pantheon.tech>
 <20240801091839.178306-1-juraj.linkes@pantheon.tech>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

Address a few errors reported by Sphinx when generating documentation:
framework/params/__init__.py:docstring of framework.params.modify_str:3:
    WARNING: Inline interpreted text or phrase reference start-string
    without end-string.
framework/params/eal.py:docstring of framework.params.eal.EalParams:35:
    WARNING: Definition list ends without a blank line; unexpected
    unindent.
framework/params/types.py:docstring of framework.params.types:8:
    WARNING: Inline strong start-string without end-string.
framework/params/types.py:docstring of framework.params.types:9:
    WARNING: Inline strong start-string without end-string.
framework/parser.py:docstring of framework.parser.TextParser:33: ERROR:
    Unexpected indentation.
framework/parser.py:docstring of framework.parser.TextParser:43: ERROR:
    Unexpected indentation.
framework/parser.py:docstring of framework.parser.TextParser:49: ERROR:
    Unexpected indentation.
framework/parser.py:docstring of framework.parser.TextParser.wrap:8:
    ERROR: Unexpected indentation.
framework/parser.py:docstring of framework.parser.TextParser.wrap:9:
    WARNING: Block quote ends without a blank line; unexpected unindent.

Fixes: 87ba4cdc0dbb ("dts: use Unpack for type checking and hinting")
Fixes: d70159cb62f5 ("dts: add params manipulation module")
Fixes: 967fc62b0a43 ("dts: refactor EAL parameters class")
Fixes: 818fe14e3422 ("dts: add parsing utility module")
Cc: luca.vizzarro@arm.com

Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
---
 dts/framework/params/__init__.py | 4 ++--
 dts/framework/params/eal.py      | 7 +++++--
 dts/framework/params/types.py    | 3 ++-
 dts/framework/parser.py          | 4 ++--
 4 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/dts/framework/params/__init__.py b/dts/framework/params/__init__.py
index 5a6fd93053..1ae227d7b4 100644
--- a/dts/framework/params/__init__.py
+++ b/dts/framework/params/__init__.py
@@ -53,9 +53,9 @@ def reduced_fn(value):
 
 
 def modify_str(*funcs: FnPtr) -> Callable[[T], T]:
-    """Class decorator modifying the ``__str__`` method with a function created from its arguments.
+    r"""Class decorator modifying the ``__str__`` method with a function created from its arguments.
 
-    The :attr:`FnPtr`s fed to the decorator are executed from left to right in the arguments list
+    The :attr:`FnPtr`\s fed to the decorator are executed from left to right in the arguments list
     order.
 
     Args:
diff --git a/dts/framework/params/eal.py b/dts/framework/params/eal.py
index 8d7766fefc..cf1594353a 100644
--- a/dts/framework/params/eal.py
+++ b/dts/framework/params/eal.py
@@ -26,13 +26,16 @@ class EalParams(Params):
         prefix: Set the file prefix string with which to start DPDK, e.g.: ``prefix="vf"``.
         no_pci: Switch to disable PCI bus, e.g.: ``no_pci=True``.
         vdevs: Virtual devices, e.g.::
+
             vdevs=[
                 VirtualDevice('net_ring0'),
                 VirtualDevice('net_ring1')
             ]
+
         ports: The list of ports to allow.
-        other_eal_param: user defined DPDK EAL parameters, e.g.:
-                ``other_eal_param='--single-file-segments'``
+        other_eal_param: user defined DPDK EAL parameters, e.g.::
+
+            ``other_eal_param='--single-file-segments'``
     """
 
     lcore_list: LogicalCoreList | None = field(default=None, metadata=Params.short("l"))
diff --git a/dts/framework/params/types.py b/dts/framework/params/types.py
index e668f658d8..d77c4625fb 100644
--- a/dts/framework/params/types.py
+++ b/dts/framework/params/types.py
@@ -6,7 +6,8 @@
 TypedDicts can be used in conjunction with Unpack and kwargs for type hinting on function calls.
 
 Example:
-    ..code:: python
+    .. code:: python
+
         def create_testpmd(**kwargs: Unpack[TestPmdParamsDict]):
             params = TestPmdParams(**kwargs)
 """
diff --git a/dts/framework/parser.py b/dts/framework/parser.py
index 741dfff821..7254c75b71 100644
--- a/dts/framework/parser.py
+++ b/dts/framework/parser.py
@@ -46,7 +46,7 @@ class TextParser(ABC):
     Example:
         The following example makes use of and demonstrates every parser function available:
 
-        ..code:: python
+        .. code:: python
 
             from dataclasses import dataclass, field
             from enum import Enum
@@ -90,7 +90,7 @@ def wrap(parser_fn: ParserFn, wrapper_fn: Callable) -> ParserFn:
         """Makes a wrapped parser function.
 
         `parser_fn` is called and if a non-None value is returned, `wrapper_function` is called with
-        it. Otherwise the function returns early with None. In pseudo-code:
+        it. Otherwise the function returns early with None. In pseudo-code::
 
             intermediate_value := parser_fn(input)
             if intermediary_value is None then
-- 
2.34.1