[PATCH v3 2/3] dts: add missing type stubs

Paul Szczepanek paul.szczepanek at arm.com
Fri Jan 3 13:55:16 CET 2025


From: Luca Vizzarro <luca.vizzarro at arm.com>

The invoke and paramiko libraries were missing the type stubs. These are
added under the dev dependencies as the only scope in which they are
used is through mypy static checking.

For the same reason, move the PyYAML subs under the dev dependencies.

Signed-off-by: Luca Vizzarro <luca.vizzarro at arm.com>
Reviewed-by: Paul Szczepanek <paul.szczepanek at arm.com>
---
 dts/poetry.lock    | 27 ++++++++++++++++++++++++++-
 dts/pyproject.toml |  4 +++-
 2 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/dts/poetry.lock b/dts/poetry.lock
index 1eae7ea2fb..29f9a18cd6 100644
--- a/dts/poetry.lock
+++ b/dts/poetry.lock
@@ -1228,6 +1228,31 @@ files = [
     {file = "tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff"},
 ]
 
+[[package]]
+name = "types-invoke"
+version = "2.0.0.10"
+description = "Typing stubs for invoke"
+optional = false
+python-versions = ">=3.7"
+files = [
+    {file = "types-invoke-2.0.0.10.tar.gz", hash = "sha256:a54d7ecdc19e0c22cd2786ef2e64c2631715c78eba8a1bf40b511d0608f33a88"},
+    {file = "types_invoke-2.0.0.10-py3-none-any.whl", hash = "sha256:2404e4279601fa96e14ef68321fd10a660a828677aabdcaeef6a5189778084ef"},
+]
+
+[[package]]
+name = "types-paramiko"
+version = "3.5.0.20240928"
+description = "Typing stubs for paramiko"
+optional = false
+python-versions = ">=3.8"
+files = [
+    {file = "types-paramiko-3.5.0.20240928.tar.gz", hash = "sha256:79dd9b2ee510b76a3b60d8ac1f3f348c45fcecf01347ca79e14db726bbfc442d"},
+    {file = "types_paramiko-3.5.0.20240928-py3-none-any.whl", hash = "sha256:cda0aff4905fe8efe4b5448331a80e943d42a796bd4beb77a3eed3485bc96a85"},
+]
+
+[package.dependencies]
+cryptography = ">=37.0.0"
+
 [[package]]
 name = "types-pyyaml"
 version = "6.0.12.20240917"
@@ -1270,4 +1295,4 @@ zstd = ["zstandard (>=0.18.0)"]
 [metadata]
 lock-version = "2.0"
 python-versions = "^3.10"
-content-hash = "416cab6effbb2848e872e2ced35bbfb4862722f1e96351ab0694f6fa2d919535"
+content-hash = "ef76008e3c2578b03a4360ca1b7bbf394c4fc7abbbef46ac1d52a6de0ff9ba88"
diff --git a/dts/pyproject.toml b/dts/pyproject.toml
index 778586028e..c425e8c445 100644
--- a/dts/pyproject.toml
+++ b/dts/pyproject.toml
@@ -21,7 +21,6 @@ documentation = "https://doc.dpdk.org/guides/tools/dts.html"
 [tool.poetry.dependencies]
 python = "^3.10"
 PyYAML = "^6.0"
-types-PyYAML = "^6.0.8"
 fabric = "^2.7.1"
 scapy = "^2.6.1"
 typing-extensions = "^4.11.0"
@@ -32,6 +31,9 @@ pydantic = "^2.9.2"
 mypy = "^1.13.0"
 toml = "^0.10.2"
 ruff = "^0.8.1"
+types-paramiko = "^3.5.0.20240928"
+types-invoke = "^2.0.0.10"
+types-pyyaml = "^6.0.12.20240917"
 
 [tool.poetry.group.docs]
 optional = true
-- 
2.39.2



More information about the dev mailing list