[elbe-devel] [PATCH 08/10] elbepack: toolchain: annotate types of queues class variables

Thomas Weißschuh thomas.weissschuh at linutronix.de
Mon Aug 12 14:19:29 CEST 2024


Mypy can not infer the types of this class variable.
Annotate it explicitly.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/toolchain.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/toolchain.py b/elbepack/toolchain.py
index fa78cb1a5014..9fd298b66bc5 100644
--- a/elbepack/toolchain.py
+++ b/elbepack/toolchain.py
@@ -13,7 +13,7 @@ arch2triple = {'armhf': 'arm-linux-gnueabihf', 'armel': 'arm-linux-gnueabi'}
 class Toolchain:
     libc_path = '${triple}/libc'
     gcc_libpath = '${triple}/lib'
-    pkg_libs = {}
+    pkg_libs: dict[str, list[str]] = {}
 
     def __init__(self, path, arch, triple=None):
         self.path = path

-- 
2.46.0



More information about the elbe-devel mailing list