aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2024-01-02 12:56:56 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-02 12:56:56 -0500
commit259a52c16c02d2cbb041ad33ea66a735652c66cf (patch)
tree3a6fa84338df1c056a3689b3850fa1370d635e48
parentlddtree: disable pyelftools pylint import errors (diff)
downloadpax-utils-259a52c16c02d2cbb041ad33ea66a735652c66cf.tar.gz
pax-utils-259a52c16c02d2cbb041ad33ea66a735652c66cf.tar.bz2
pax-utils-259a52c16c02d2cbb041ad33ea66a735652c66cf.zip
lddtree: disable mypy import errors
We don't have types for these imports, so ignore errors on them. Signed-off-by: Mike Frysinger <vapier@chromium.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-xlddtree.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lddtree.py b/lddtree.py
index 70d755c..8a42627 100755
--- a/lddtree.py
+++ b/lddtree.py
@@ -56,12 +56,12 @@ assert sys.version_info >= (3, 6), f"Python 3.6+ required, but found {sys.versio
# Disable import errors for all 3rd party modules.
# pylint: disable=import-error
try:
- import argcomplete
+ import argcomplete # type: ignore
except ImportError:
argcomplete = cast(Any, None)
-from elftools.common import exceptions
-from elftools.elf.elffile import ELFFile
+from elftools.common import exceptions # type: ignore
+from elftools.elf.elffile import ELFFile # type: ignore
# pylint: enable=import-error