diff options
author | 2023-12-15 15:53:20 -0500 | |
---|---|---|
committer | 2023-12-15 15:53:59 -0500 | |
commit | 9ca3f108762c27b557825f5392499498e8a00202 (patch) | |
tree | 6e6617878c02ece570b4b45876094b345d6f1f4a | |
parent | lddtree: use f-string in warn message (diff) | |
download | pax-utils-9ca3f108762c27b557825f5392499498e8a00202.tar.gz pax-utils-9ca3f108762c27b557825f5392499498e8a00202.tar.bz2 pax-utils-9ca3f108762c27b557825f5392499498e8a00202.zip |
lddtree: fix argcomplete typing
mypy wants a cast here to avoid warning:
lddtree.py:59: error: Incompatible types in assignment (expression has type "None", variable has type Module) [assignment]
Signed-off-by: Mike Frysinger <vapier@chromium.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-x | lddtree.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -49,14 +49,14 @@ import os import re import shutil import sys -from typing import Any, Iterable, Optional, Union +from typing import Any, cast, Iterable, Optional, Union assert sys.version_info >= (3, 6), f"Python 3.6+ required, but found {sys.version}" try: import argcomplete except ImportError: - argcomplete = None + argcomplete = cast(Any, None) from elftools.common import exceptions from elftools.elf.elffile import ELFFile |