mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-11-01 05:33:06 +00:00
type: fix typing ignore with the last typing update
This commit is contained in:
1 parent
68afda4c71
commit
774db2d780
1 file changed
+4
-4
@@ -72,17 +72,17 @@ class PackageArchive:
|
|||||||
if not PackageArchive.is_elf(binary_file):
|
if not PackageArchive.is_elf(binary_file):
|
||||||
return []
|
return []
|
||||||
|
|
||||||
elf_file = ELFFile(binary_file) # type: ignore[no-untyped-call]
|
elf_file = ELFFile(binary_file)
|
||||||
dynamic_section = next(
|
dynamic_section = next(
|
||||||
(section for section in elf_file.iter_sections() # type: ignore[no-untyped-call]
|
(section for section in elf_file.iter_sections()
|
||||||
if isinstance(section, DynamicSection)),
|
if isinstance(section, DynamicSection)),
|
||||||
None)
|
None)
|
||||||
if dynamic_section is None:
|
if dynamic_section is None:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
return [
|
return [
|
||||||
tag.needed
|
tag.needed # type: ignore[attr-defined]
|
||||||
for tag in dynamic_section.iter_tags() # type: ignore[no-untyped-call]
|
for tag in dynamic_section.iter_tags()
|
||||||
if tag.entry.d_tag == "DT_NEEDED"
|
if tag.entry.d_tag == "DT_NEEDED"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user