[elbe-devel] [PATCH 35/37] Annotate claimed unused but used imports

Benedikt Spranger b.spranger at linutronix.de
Wed Feb 7 15:29:02 CET 2024


Some imports are misleadingly claimed unused by flake8 but are
used by some extraordinary python logic. Annotate these imports.

Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>
---
 elbe                | 2 +-
 elbepack/virtapt.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/elbe b/elbe
index 9f344cc0..77b15be4 100755
--- a/elbe
+++ b/elbe
@@ -12,7 +12,7 @@ import sys
 # get_cmd_list() and the magic stuff with __import__() at the end of
 # this file
 #
-import elbepack.commands
+import elbepack.commands  # noqa: F401
 from elbepack.directories import get_cmdlist, init_directories
 from elbepack.version import elbe_version
 
diff --git a/elbepack/virtapt.py b/elbepack/virtapt.py
index 614f5d31..3281abb1 100644
--- a/elbepack/virtapt.py
+++ b/elbepack/virtapt.py
@@ -8,7 +8,7 @@ import sys
 
 # don't remove the apt import, it is really needed, due to some magic in
 # apt_pkg
-import apt
+import apt  # noqa: F401
 
 import apt_pkg
 
-- 
2.43.0



More information about the elbe-devel mailing list