Skip to content

Commit

Permalink
Update stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Apr 9, 2023
1 parent e05ba11 commit f8f38b6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
9 changes: 9 additions & 0 deletions api/python/lief/MachO.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ class Binary(lief.Binary):
def __len__(self) -> int: ...
def __next__(self) -> lief.MachO.Relocation: ...

class it_rpaths:
def __init__(self, *args, **kwargs) -> None: ...
def __getitem__(self, arg0: int) -> lief.MachO.RPathCommand: ...
def __iter__(self) -> Iterator: ...
def __len__(self) -> int: ...
def __next__(self) -> lief.MachO.RPathCommand: ...

class it_sections:
def __init__(self, *args, **kwargs) -> None: ...
def __getitem__(self, arg0: int) -> lief.MachO.Section: ...
Expand Down Expand Up @@ -321,6 +328,8 @@ class Binary(lief.Binary):
@property
def rpath(self) -> lief.MachO.RPathCommand: ...
@property
def rpaths(self) -> lief.MachO.Binary.it_rpaths: ...
@property
def sections(self) -> lief.MachO.Binary.it_sections: ...
@property
def segment_split_info(self) -> lief.MachO.SegmentSplitInfo: ...
Expand Down
23 changes: 23 additions & 0 deletions api/python/lief/PE.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,16 @@ class LoadConfigurationV1(LoadConfigurationV0):
@property
def guard_cf_flags_list(self) -> Set[lief.PE.GUARD_CF_FLAGS]: ...

class LoadConfigurationV10(LoadConfigurationV9):
guard_xfg_check_function_pointer: int
guard_xfg_dispatch_function_pointer: int
guard_xfg_table_dispatch_function_pointer: int
def __init__(self) -> None: ...

class LoadConfigurationV11(LoadConfigurationV10):
cast_guard_os_determined_failure_mode: int
def __init__(self) -> None: ...

class LoadConfigurationV2(LoadConfigurationV1):
def __init__(self) -> None: ...
@property
Expand Down Expand Up @@ -1187,6 +1197,15 @@ class LoadConfigurationV7(LoadConfigurationV6):
reserved3: int
def __init__(self) -> None: ...

class LoadConfigurationV8(LoadConfigurationV7):
volatile_metadata_pointer: int
def __init__(self) -> None: ...

class LoadConfigurationV9(LoadConfigurationV8):
guard_eh_continuation_count: int
guard_eh_continuation_table: int
def __init__(self) -> None: ...

class MACHINE_TYPES:
__members__: ClassVar[dict] = ... # read-only
AM33: ClassVar[MACHINE_TYPES] = ...
Expand Down Expand Up @@ -2479,7 +2498,11 @@ class WIN_VERSION:
WIN10_0_14901: ClassVar[WIN_VERSION] = ...
WIN10_0_15002: ClassVar[WIN_VERSION] = ...
WIN10_0_16237: ClassVar[WIN_VERSION] = ...
WIN10_0_18362: ClassVar[WIN_VERSION] = ...
WIN10_0_19534: ClassVar[WIN_VERSION] = ...
WIN10_0_9879: ClassVar[WIN_VERSION] = ...
WIN10_0_MSVC_2019: ClassVar[WIN_VERSION] = ...
WIN10_0_MSVC_2019_16: ClassVar[WIN_VERSION] = ...
WIN_8_1: ClassVar[WIN_VERSION] = ...
__entries: ClassVar[dict] = ...
def __init__(self, value: int) -> None: ...
Expand Down

0 comments on commit f8f38b6

Please sign in to comment.