[elbe-devel] [PATCH 35/37] Annotate claimed unused but used imports
Eduard Krein
eduard.krein at linutronix.de
Wed Feb 7 16:37:35 CET 2024
Am Mittwoch, dem 07.02.2024 um 15:29 +0100 schrieb Benedikt Spranger:
> 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>
Reviewed-by: Eduard Krein <eduard.krein 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
>
--
Eduard Krein
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 19; Fax.: +49 7556 25 999 99
Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/legal/data-protection.php
Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br.,HRB700
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas
Gleixner, Sharon Heck, Yulia Beck, Tiffany Silva
More information about the elbe-devel
mailing list