Skip to content

Commit

Permalink
Resolve #909
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed May 3, 2023
1 parent 5e814ea commit 2e06bdb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions api/python/lief/PE.pyi
Expand Up @@ -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:
Expand Down Expand Up @@ -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: ...
Expand Down Expand Up @@ -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: ...

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions api/python/lief/__init__.pyi
Expand Up @@ -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
Expand Down

0 comments on commit 2e06bdb

Please sign in to comment.