Skip to content

stubs: issue with mypy and binary.abstract #909

@fanquake

Description

@fanquake

Using lief 0.13.0 & mypy 1.2.0 (both installed via pip), with some code like this:

import lief

binary = lief.parse("/path/to/binary")
arch = binary.abstract.header.architecture
binary.concrete

# .. do other stuff

when passed to mypy gives:

# mypy test.py
test.py:4: error: "object" has no attribute "header"  [attr-defined]
Found 1 error in 1 file (checked 1 source file)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions