diff --git a/api/python/lief/PE.pyi b/api/python/lief/PE.pyi index 68f431fe2a..5efaef9781 100644 --- a/api/python/lief/PE.pyi +++ b/api/python/lief/PE.pyi @@ -234,7 +234,7 @@ class ALGORITHMS: class Attribute(lief.Object): def __init__(self, *args, **kwargs) -> None: ... @property - def type(self) -> Any: ... + def type(self) -> lief.PE.SIG_ATTRIBUTE_TYPES: ... class Binary(lief.Binary): class it_const_signatures: @@ -315,7 +315,7 @@ class Binary(lief.Binary): @overload def verify_signature(self, signature: lief.PE.Signature, checks: lief.PE.Signature.VERIFICATION_CHECKS = ...) -> lief.PE.Signature.VERIFICATION_FLAGS: ... @overload - def verify_signature(self, detached) -> Any: ... + def verify_signature(self, detached) -> lief.PE.Signature.VERIFICATION_FLAGS: ... def write(self, output_path: str) -> None: ... @property def authentihash_md5(self) -> bytes: ... @@ -2390,7 +2390,7 @@ class Signature(lief.Object): @property def raw_der(self) -> bytes: ... @property - def signers(self) -> Any: ... + def signers(self) -> List[lief.PE.SignerInfo]: ... @property def version(self) -> int: ... @@ -2588,12 +2588,12 @@ class x509(lief.Object): @overload def is_trusted_by(self, ca_list: List[lief.PE.x509]) -> lief.PE.x509.VERIFICATION_FLAGS: ... @overload - def is_trusted_by(self, microsoft_ca_bundle) -> Any: ... + def is_trusted_by(self, microsoft_ca_bundle) -> lief.PE.x509.VERIFICATION_FLAGS: ... def parse(self, *args, **kwargs) -> lief.PE.Binary | None: ... @overload def verify(self, ca: lief.PE.x509) -> lief.PE.x509.VERIFICATION_FLAGS: ... @overload - def verify(self, signer) -> Any: ... + def verify(self, signer) -> lief.PE.x509.VERIFICATION_FLAGS: ... @property def certificate_policies(self) -> List[str]: ... @property diff --git a/api/python/lief/__init__.pyi b/api/python/lief/__init__.pyi index 5587c19175..709e4a357d 100644 --- a/api/python/lief/__init__.pyi +++ b/api/python/lief/__init__.pyi @@ -70,11 +70,11 @@ class Binary(Object): def remove_section(self, name: str, clear: bool = ...) -> None: ... def xref(self, virtual_address: int) -> List[int]: ... @property - def abstract(self) -> object: ... + def abstract(self) -> lief.Binary: ... @property - def concrete(self) -> object: ... + def concrete(self) -> lief.ELF.Binary | lief.PE.Binary | lief.MachO.Binary: ... @property - def ctor_functions(self) -> Any: ... + def ctor_functions(self) -> List[lief.Function]: ... @property def entrypoint(self) -> int: ... @property