From f77b817cbaab31c05545b5778e5e997b105fadfd Mon Sep 17 00:00:00 2001 From: Romain Thomas Date: Sat, 3 Feb 2024 12:33:02 +0100 Subject: [PATCH] Resolve #1019 --- api/python/lief/ART.pyi | 2 +- api/python/lief/Android.pyi | 2 +- api/python/lief/DEX.pyi | 8 ++-- api/python/lief/ELF.pyi | 66 +++++++++++++++---------------- api/python/lief/MachO.pyi | 58 +++++++++++++-------------- api/python/lief/OAT.pyi | 8 ++-- api/python/lief/PE.pyi | 76 ++++++++++++++++++------------------ api/python/lief/__init__.pyi | 18 ++++----- api/python/lief/logging.pyi | 2 +- 9 files changed, 120 insertions(+), 120 deletions(-) diff --git a/api/python/lief/ART.pyi b/api/python/lief/ART.pyi index 0f8ff965de..eb15e0a6d0 100644 --- a/api/python/lief/ART.pyi +++ b/api/python/lief/ART.pyi @@ -58,7 +58,7 @@ class STORAGE_MODES: LZ4: ClassVar[STORAGE_MODES] = ... LZ4HC: ClassVar[STORAGE_MODES] = ... UNCOMPRESSED: ClassVar[STORAGE_MODES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... def __ge__(self, other) -> bool: ... def __gt__(self, other) -> bool: ... diff --git a/api/python/lief/Android.pyi b/api/python/lief/Android.pyi index 66b9f9e12b..64d835e422 100644 --- a/api/python/lief/Android.pyi +++ b/api/python/lief/Android.pyi @@ -11,7 +11,7 @@ class ANDROID_VERSIONS: VERSION_800: ClassVar[ANDROID_VERSIONS] = ... VERSION_810: ClassVar[ANDROID_VERSIONS] = ... VERSION_900: ClassVar[ANDROID_VERSIONS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.Android.ANDROID_VERSIONS: ... diff --git a/api/python/lief/DEX.pyi b/api/python/lief/DEX.pyi index 194c43007b..ab98b9683d 100644 --- a/api/python/lief/DEX.pyi +++ b/api/python/lief/DEX.pyi @@ -32,7 +32,7 @@ class ACCESS_FLAGS: UNKNOWN: ClassVar[ACCESS_FLAGS] = ... VARARGS: ClassVar[ACCESS_FLAGS] = ... VOLATILE: ClassVar[ACCESS_FLAGS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... def __ge__(self, other) -> bool: ... def __gt__(self, other) -> bool: ... @@ -252,7 +252,7 @@ class MapItem(lief.Object): STRING_ID: ClassVar[MapItem.TYPES] = ... TYPE_ID: ClassVar[MapItem.TYPES] = ... TYPE_LIST: ClassVar[MapItem.TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.DEX.MapItem.TYPES: ... @@ -334,7 +334,7 @@ class Type(lief.Object): LONG: ClassVar[Type.PRIMITIVES] = ... SHORT: ClassVar[Type.PRIMITIVES] = ... VOID_T: ClassVar[Type.PRIMITIVES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... def __ge__(self, other) -> bool: ... def __gt__(self, other) -> bool: ... @@ -349,7 +349,7 @@ class Type(lief.Object): CLASS: ClassVar[Type.TYPES] = ... PRIMITIVE: ClassVar[Type.TYPES] = ... UNKNOWN: ClassVar[Type.TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... def __ge__(self, other) -> bool: ... def __gt__(self, other) -> bool: ... diff --git a/api/python/lief/ELF.pyi b/api/python/lief/ELF.pyi index bd7c57a5bc..063f3810d4 100644 --- a/api/python/lief/ELF.pyi +++ b/api/python/lief/ELF.pyi @@ -35,7 +35,7 @@ class AArch64Feature(NoteGnuProperty.Property): BTI: ClassVar[AArch64Feature.FEATURE] = ... PAC: ClassVar[AArch64Feature.FEATURE] = ... UNKNOWN: ClassVar[AArch64Feature.FEATURE] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.AArch64Feature.FEATURE: ... @@ -230,7 +230,7 @@ class ARCH: XIMO16: ClassVar[ARCH] = ... XTENSA: ClassVar[ARCH] = ... ZSP: ClassVar[ARCH] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.ARCH: ... @@ -257,7 +257,7 @@ class Binary(lief.Binary): FILE_END: ClassVar[Binary.PHDR_RELOC] = ... PIE_SHIFT: ClassVar[Binary.PHDR_RELOC] = ... SEGMENT_GAP: ClassVar[Binary.PHDR_RELOC] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... def __ge__(self, other) -> bool: ... def __gt__(self, other) -> bool: ... @@ -602,7 +602,7 @@ class CoreAuxv(Note): TGT_PLATFORM: ClassVar[CoreAuxv.TYPE] = ... UCACHEBSIZE: ClassVar[CoreAuxv.TYPE] = ... UID: ClassVar[CoreAuxv.TYPE] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.CoreAuxv.TYPE: ... @@ -729,7 +729,7 @@ class CorePrStatus(Note): X7: ClassVar[CorePrStatus.Registers.AARCH64] = ... X8: ClassVar[CorePrStatus.Registers.AARCH64] = ... X9: ClassVar[CorePrStatus.Registers.AARCH64] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.CorePrStatus.Registers.AARCH64: ... @@ -761,7 +761,7 @@ class CorePrStatus(Note): R7: ClassVar[CorePrStatus.Registers.ARM] = ... R8: ClassVar[CorePrStatus.Registers.ARM] = ... R9: ClassVar[CorePrStatus.Registers.ARM] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.CorePrStatus.Registers.ARM: ... @@ -793,7 +793,7 @@ class CorePrStatus(Note): GS: ClassVar[CorePrStatus.Registers.X86] = ... ORIG_EAX: ClassVar[CorePrStatus.Registers.X86] = ... SS: ClassVar[CorePrStatus.Registers.X86] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.CorePrStatus.Registers.X86: ... @@ -829,7 +829,7 @@ class CorePrStatus(Note): RSI: ClassVar[CorePrStatus.Registers.X86_64] = ... RSP: ClassVar[CorePrStatus.Registers.X86_64] = ... SS: ClassVar[CorePrStatus.Registers.X86_64] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.CorePrStatus.Registers.X86_64: ... @@ -1043,7 +1043,7 @@ class DynamicEntry(lief.Object): VERNEED: ClassVar[DynamicEntry.TAG] = ... VERNEEDNUM: ClassVar[DynamicEntry.TAG] = ... VERSYM: ClassVar[DynamicEntry.TAG] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.DynamicEntry.TAG: ... @@ -1111,7 +1111,7 @@ class DynamicEntryFlags(DynamicEntry): TEXTREL: ClassVar[DynamicEntryFlags.FLAG] = ... TRANS: ClassVar[DynamicEntryFlags.FLAG] = ... WEAKFILTER: ClassVar[DynamicEntryFlags.FLAG] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.DynamicEntryFlags.FLAG: ... @@ -1199,7 +1199,7 @@ class Header(lief.Object): ELF32: ClassVar[Header.CLASS] = ... ELF64: ClassVar[Header.CLASS] = ... NONE: ClassVar[Header.CLASS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.Header.CLASS: ... @@ -1217,7 +1217,7 @@ class Header(lief.Object): LSB: ClassVar[Header.ELF_DATA] = ... MSB: ClassVar[Header.ELF_DATA] = ... NONE: ClassVar[Header.ELF_DATA] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.Header.ELF_DATA: ... @@ -1237,7 +1237,7 @@ class Header(lief.Object): EXEC: ClassVar[Header.FILE_TYPE] = ... NONE: ClassVar[Header.FILE_TYPE] = ... REL: ClassVar[Header.FILE_TYPE] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.Header.FILE_TYPE: ... @@ -1273,7 +1273,7 @@ class Header(lief.Object): STANDALONE: ClassVar[Header.OS_ABI] = ... SYSTEMV: ClassVar[Header.OS_ABI] = ... TRU64: ClassVar[Header.OS_ABI] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.Header.OS_ABI: ... @@ -1290,7 +1290,7 @@ class Header(lief.Object): class VERSION: CURRENT: ClassVar[Header.VERSION] = ... NONE: ClassVar[Header.VERSION] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.Header.VERSION: ... @@ -1372,7 +1372,7 @@ class Note(lief.Object): GO_BUILDID: ClassVar[Note.TYPE] = ... STAPSDT: ClassVar[Note.TYPE] = ... UNKNOWN: ClassVar[Note.TYPE] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.Note.TYPE: ... @@ -1414,7 +1414,7 @@ class NoteAbi(Note): NETBSD: ClassVar[NoteAbi.ABI] = ... SOLARIS2: ClassVar[NoteAbi.ABI] = ... SYLLABLE: ClassVar[NoteAbi.ABI] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.NoteAbi.ABI: ... @@ -1444,7 +1444,7 @@ class NoteGnuProperty(Note): UNKNOWN: ClassVar[NoteGnuProperty.Property.TYPE] = ... X86_FEATURE: ClassVar[NoteGnuProperty.Property.TYPE] = ... X86_ISA: ClassVar[NoteGnuProperty.Property.TYPE] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.NoteGnuProperty.Property.TYPE: ... @@ -1531,7 +1531,7 @@ class PROCESSOR_FLAGS: MIPS_NAN2008: ClassVar[PROCESSOR_FLAGS] = ... MIPS_NOREORDER: ClassVar[PROCESSOR_FLAGS] = ... MIPS_PIC: ClassVar[PROCESSOR_FLAGS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.PROCESSOR_FLAGS: ... @@ -1551,7 +1551,7 @@ class ParserConfig: HASH: ClassVar[ParserConfig.DYNSYM_COUNT] = ... RELOCATIONS: ClassVar[ParserConfig.DYNSYM_COUNT] = ... SECTION: ClassVar[ParserConfig.DYNSYM_COUNT] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.ParserConfig.DYNSYM_COUNT: ... @@ -1581,7 +1581,7 @@ class Relocation(lief.Relocation): NONE: ClassVar[Relocation.PURPOSE] = ... OBJECT: ClassVar[Relocation.PURPOSE] = ... PLTGOT: ClassVar[Relocation.PURPOSE] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.Relocation.PURPOSE: ... @@ -2522,7 +2522,7 @@ class Relocation(lief.Relocation): X86_TLS_LE_32: ClassVar[Relocation.TYPE] = ... X86_TLS_TPOFF: ClassVar[Relocation.TYPE] = ... X86_TLS_TPOFF32: ClassVar[Relocation.TYPE] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.Relocation.TYPE: ... @@ -2584,7 +2584,7 @@ class Section(lief.Section): X86_64_LARGE: ClassVar[Section.FLAGS] = ... XCORE_SHF_CP_SECTION: ClassVar[Section.FLAGS] = ... XCORE_SHF_DP_SECTION: ClassVar[Section.FLAGS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.Section.FLAGS: ... @@ -2666,7 +2666,7 @@ class Section(lief.Section): SYMTAB: ClassVar[Section.TYPE] = ... SYMTAB_SHNDX: ClassVar[Section.TYPE] = ... X86_64_UNWIND: ClassVar[Section.TYPE] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.Section.TYPE: ... @@ -2726,7 +2726,7 @@ class Segment(lief.Object): R: ClassVar[Segment.FLAGS] = ... W: ClassVar[Segment.FLAGS] = ... X: ClassVar[Segment.FLAGS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.Segment.FLAGS: ... @@ -2791,7 +2791,7 @@ class Segment(lief.Object): RISCV_ATTRIBUTES: ClassVar[Segment.TYPE] = ... SHLIB: ClassVar[Segment.TYPE] = ... TLS: ClassVar[Segment.TYPE] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.Segment.TYPE: ... @@ -2853,7 +2853,7 @@ class Symbol(lief.Symbol): GNU_UNIQUE: ClassVar[Symbol.BINDING] = ... LOCAL: ClassVar[Symbol.BINDING] = ... WEAK: ClassVar[Symbol.BINDING] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.Symbol.BINDING: ... @@ -2876,7 +2876,7 @@ class Symbol(lief.Symbol): OBJECT: ClassVar[Symbol.TYPE] = ... SECTION: ClassVar[Symbol.TYPE] = ... TLS: ClassVar[Symbol.TYPE] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.Symbol.TYPE: ... @@ -2895,7 +2895,7 @@ class Symbol(lief.Symbol): HIDDEN: ClassVar[Symbol.VISIBILITY] = ... INTERNAL: ClassVar[Symbol.VISIBILITY] = ... PROTECTED: ClassVar[Symbol.VISIBILITY] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.Symbol.VISIBILITY: ... @@ -3016,7 +3016,7 @@ class X86Features(NoteGnuProperty.Property): XSAVEOPT: ClassVar[X86Features.FEATURE] = ... YMM: ClassVar[X86Features.FEATURE] = ... ZMM: ClassVar[X86Features.FEATURE] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.X86Features.FEATURE: ... @@ -3034,7 +3034,7 @@ class X86Features(NoteGnuProperty.Property): NEEDED: ClassVar[X86Features.FLAG] = ... NONE: ClassVar[X86Features.FLAG] = ... USED: ClassVar[X86Features.FLAG] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.X86Features.FLAG: ... @@ -3056,7 +3056,7 @@ class X86ISA(NoteGnuProperty.Property): NEEDED: ClassVar[X86ISA.FLAG] = ... NONE: ClassVar[X86ISA.FLAG] = ... USED: ClassVar[X86ISA.FLAG] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.X86ISA.FLAG: ... @@ -3104,7 +3104,7 @@ class X86ISA(NoteGnuProperty.Property): V2: ClassVar[X86ISA.ISA] = ... V3: ClassVar[X86ISA.ISA] = ... V4: ClassVar[X86ISA.ISA] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ELF.X86ISA.ISA: ... diff --git a/api/python/lief/MachO.pyi b/api/python/lief/MachO.pyi index e763bc9f14..8fc940a21b 100644 --- a/api/python/lief/MachO.pyi +++ b/api/python/lief/MachO.pyi @@ -29,7 +29,7 @@ class ARM64_RELOCATION: TLVP_LOAD_PAGE21: ClassVar[ARM64_RELOCATION] = ... TLVP_LOAD_PAGEOFF12: ClassVar[ARM64_RELOCATION] = ... UNSIGNED: ClassVar[ARM64_RELOCATION] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.ARM64_RELOCATION: ... @@ -54,7 +54,7 @@ class ARM_RELOCATION: THUMB_32BIT_BRANCH: ClassVar[ARM_RELOCATION] = ... THUMB_RELOC_BR22: ClassVar[ARM_RELOCATION] = ... VANILLA: ClassVar[ARM_RELOCATION] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.ARM_RELOCATION: ... @@ -73,7 +73,7 @@ class BINDING_CLASS: STANDARD: ClassVar[BINDING_CLASS] = ... THREADED: ClassVar[BINDING_CLASS] = ... WEAK: ClassVar[BINDING_CLASS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.BINDING_CLASS: ... @@ -102,7 +102,7 @@ class BIND_OPCODES: SET_SYMBOL_TRAILING_FLAGS_IMM: ClassVar[BIND_OPCODES] = ... SET_TYPE_IMM: ClassVar[BIND_OPCODES] = ... THREADED: ClassVar[BIND_OPCODES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.BIND_OPCODES: ... @@ -120,7 +120,7 @@ class BIND_SPECIAL_DYLIB: FLAT_LOOKUP: ClassVar[BIND_SPECIAL_DYLIB] = ... MAIN_EXECUTABLE: ClassVar[BIND_SPECIAL_DYLIB] = ... SELF: ClassVar[BIND_SPECIAL_DYLIB] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.BIND_SPECIAL_DYLIB: ... @@ -138,7 +138,7 @@ class BIND_TYPES: POINTER: ClassVar[BIND_TYPES] = ... TEXT_ABSOLUTE32: ClassVar[BIND_TYPES] = ... TEXT_PCREL32: ClassVar[BIND_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.BIND_TYPES: ... @@ -438,7 +438,7 @@ class BuildToolVersion(lief.Object): LD: ClassVar[BuildToolVersion.TOOLS] = ... SWIFT: ClassVar[BuildToolVersion.TOOLS] = ... UNKNOWN: ClassVar[BuildToolVersion.TOOLS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.BuildToolVersion.TOOLS: ... @@ -464,7 +464,7 @@ class BuildVersion(LoadCommand): TVOS: ClassVar[BuildVersion.PLATFORMS] = ... UNKNOWN: ClassVar[BuildVersion.PLATFORMS] = ... WATCHOS: ClassVar[BuildVersion.PLATFORMS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.BuildVersion.PLATFORMS: ... @@ -513,7 +513,7 @@ class CPU_TYPES: SPARC: ClassVar[CPU_TYPES] = ... x86: ClassVar[CPU_TYPES] = ... x86_64: ClassVar[CPU_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.CPU_TYPES: ... @@ -555,7 +555,7 @@ class DYLD_CHAINED_FORMAT: IMPORT: ClassVar[DYLD_CHAINED_FORMAT] = ... IMPORT_ADDEND: ClassVar[DYLD_CHAINED_FORMAT] = ... IMPORT_ADDEND64: ClassVar[DYLD_CHAINED_FORMAT] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.DYLD_CHAINED_FORMAT: ... @@ -582,7 +582,7 @@ class DYLD_CHAINED_PTR_FORMAT: PTR_ARM64E_USERLAND: ClassVar[DYLD_CHAINED_PTR_FORMAT] = ... PTR_ARM64E_USERLAND24: ClassVar[DYLD_CHAINED_PTR_FORMAT] = ... PTR_X86_64_KERNEL_CACHE: ClassVar[DYLD_CHAINED_PTR_FORMAT] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.DYLD_CHAINED_PTR_FORMAT: ... @@ -604,7 +604,7 @@ class DataCodeEntry(lief.Object): JUMP_TABLE_32: ClassVar[DataCodeEntry.TYPES] = ... JUMP_TABLE_8: ClassVar[DataCodeEntry.TYPES] = ... UNKNOWN: ClassVar[DataCodeEntry.TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.DataCodeEntry.TYPES: ... @@ -807,7 +807,7 @@ class EXPORT_SYMBOL_FLAGS: REEXPORT: ClassVar[EXPORT_SYMBOL_FLAGS] = ... STUB_AND_RESOLVER: ClassVar[EXPORT_SYMBOL_FLAGS] = ... WEAK_DEFINITION: ClassVar[EXPORT_SYMBOL_FLAGS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.EXPORT_SYMBOL_FLAGS: ... @@ -825,7 +825,7 @@ class EXPORT_SYMBOL_KINDS: ABSOLUTE: ClassVar[EXPORT_SYMBOL_KINDS] = ... REGULAR: ClassVar[EXPORT_SYMBOL_KINDS] = ... THREAD_LOCAL: ClassVar[EXPORT_SYMBOL_KINDS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.EXPORT_SYMBOL_KINDS: ... @@ -877,7 +877,7 @@ class FILE_TYPES: KEXT_BUNDLE: ClassVar[FILE_TYPES] = ... OBJECT: ClassVar[FILE_TYPES] = ... PRELOAD: ClassVar[FILE_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.FILE_TYPES: ... @@ -953,7 +953,7 @@ class HEADER_FLAGS: SUBSECTIONS_VIA_SYMBOLS: ClassVar[HEADER_FLAGS] = ... TWOLEVEL: ClassVar[HEADER_FLAGS] = ... WEAK_DEFINES: ClassVar[HEADER_FLAGS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.HEADER_FLAGS: ... @@ -1041,7 +1041,7 @@ class LOAD_COMMAND_TYPES: VERSION_MIN_MACOSX: ClassVar[LOAD_COMMAND_TYPES] = ... VERSION_MIN_TVOS: ClassVar[LOAD_COMMAND_TYPES] = ... VERSION_MIN_WATCHOS: ClassVar[LOAD_COMMAND_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.LOAD_COMMAND_TYPES: ... @@ -1079,7 +1079,7 @@ class MACHO_TYPES: FAT_MAGIC: ClassVar[MACHO_TYPES] = ... MAGIC: ClassVar[MACHO_TYPES] = ... MAGIC_64: ClassVar[MACHO_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.MACHO_TYPES: ... @@ -1115,7 +1115,7 @@ class PPC_RELOCATION: PB_LA_PTR: ClassVar[PPC_RELOCATION] = ... SECTDIFF: ClassVar[PPC_RELOCATION] = ... VANILLA: ClassVar[PPC_RELOCATION] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.PPC_RELOCATION: ... @@ -1151,7 +1151,7 @@ class REBASE_OPCODES: DO_REBASE_ULEB_TIMES_SKIPPING_ULEB: ClassVar[REBASE_OPCODES] = ... SET_SEGMENT_AND_OFFSET_ULEB: ClassVar[REBASE_OPCODES] = ... SET_TYPE_IMM: ClassVar[REBASE_OPCODES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.REBASE_OPCODES: ... @@ -1169,7 +1169,7 @@ class REBASE_TYPES: POINTER: ClassVar[REBASE_TYPES] = ... TEXT_ABSOLUTE32: ClassVar[REBASE_TYPES] = ... TEXT_PCREL32: ClassVar[REBASE_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.REBASE_TYPES: ... @@ -1188,7 +1188,7 @@ class RELOCATION_ORIGINS: DYLDINFO: ClassVar[RELOCATION_ORIGINS] = ... RELOC_TABLE: ClassVar[RELOCATION_ORIGINS] = ... UNKNOWN: ClassVar[RELOCATION_ORIGINS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.RELOCATION_ORIGINS: ... @@ -1256,7 +1256,7 @@ class SECTION_FLAGS: SELF_MODIFYING_CODE: ClassVar[SECTION_FLAGS] = ... SOME_INSTRUCTIONS: ClassVar[SECTION_FLAGS] = ... STRIP_STATIC_SYMS: ClassVar[SECTION_FLAGS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.SECTION_FLAGS: ... @@ -1293,7 +1293,7 @@ class SECTION_TYPES: THREAD_LOCAL_VARIABLE_POINTERS: ClassVar[SECTION_TYPES] = ... THREAD_LOCAL_ZEROFILL: ClassVar[SECTION_TYPES] = ... ZEROFILL: ClassVar[SECTION_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.SECTION_TYPES: ... @@ -1311,7 +1311,7 @@ class SYMBOL_ORIGINS: DYLD_EXPORT: ClassVar[SYMBOL_ORIGINS] = ... LC_SYMTAB: ClassVar[SYMBOL_ORIGINS] = ... UNKNOWN: ClassVar[SYMBOL_ORIGINS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.SYMBOL_ORIGINS: ... @@ -1426,7 +1426,7 @@ class Symbol(lief.Symbol): LOCAL: ClassVar[Symbol.CATEGORY] = ... NONE: ClassVar[Symbol.CATEGORY] = ... UNDEFINED: ClassVar[Symbol.CATEGORY] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.Symbol.CATEGORY: ... @@ -1495,7 +1495,7 @@ class VM_PROTECTIONS: EXECUTE: ClassVar[VM_PROTECTIONS] = ... READ: ClassVar[VM_PROTECTIONS] = ... WRITE: ClassVar[VM_PROTECTIONS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.VM_PROTECTIONS: ... @@ -1525,7 +1525,7 @@ class X86_64_RELOCATION: SUBTRACTOR: ClassVar[X86_64_RELOCATION] = ... TLV: ClassVar[X86_64_RELOCATION] = ... UNSIGNED: ClassVar[X86_64_RELOCATION] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.X86_64_RELOCATION: ... @@ -1546,7 +1546,7 @@ class X86_RELOCATION: SECTDIFF: ClassVar[X86_RELOCATION] = ... TLV: ClassVar[X86_RELOCATION] = ... VANILLA: ClassVar[X86_RELOCATION] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MachO.X86_RELOCATION: ... diff --git a/api/python/lief/OAT.pyi b/api/python/lief/OAT.pyi index 485c1127e1..752e5e1066 100644 --- a/api/python/lief/OAT.pyi +++ b/api/python/lief/OAT.pyi @@ -111,7 +111,7 @@ class HEADER_KEYS: IMAGE_LOCATION: ClassVar[HEADER_KEYS] = ... NATIVE_DEBUGGABLE: ClassVar[HEADER_KEYS] = ... PIC: ClassVar[HEADER_KEYS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... def __ge__(self, other) -> bool: ... def __gt__(self, other) -> bool: ... @@ -190,7 +190,7 @@ class INSTRUCTION_SETS: THUMB2: ClassVar[INSTRUCTION_SETS] = ... X86: ClassVar[INSTRUCTION_SETS] = ... X86_64: ClassVar[INSTRUCTION_SETS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... def __ge__(self, other) -> bool: ... def __gt__(self, other) -> bool: ... @@ -230,7 +230,7 @@ class OAT_CLASS_STATUS: VERIFIED: ClassVar[OAT_CLASS_STATUS] = ... VERIFYING: ClassVar[OAT_CLASS_STATUS] = ... VERIFYING_AT_RUNTIME: ClassVar[OAT_CLASS_STATUS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... def __ge__(self, other) -> bool: ... def __gt__(self, other) -> bool: ... @@ -244,7 +244,7 @@ class OAT_CLASS_TYPES: ALL_COMPILED: ClassVar[OAT_CLASS_TYPES] = ... NONE_COMPILED: ClassVar[OAT_CLASS_TYPES] = ... SOME_COMPILED: ClassVar[OAT_CLASS_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... def __ge__(self, other) -> bool: ... def __gt__(self, other) -> bool: ... diff --git a/api/python/lief/PE.pyi b/api/python/lief/PE.pyi index de088185d2..7927552786 100644 --- a/api/python/lief/PE.pyi +++ b/api/python/lief/PE.pyi @@ -38,7 +38,7 @@ class ACCELERATOR_FLAGS: FNOINVERT: ClassVar[ACCELERATOR_FLAGS] = ... FSHIFT: ClassVar[ACCELERATOR_FLAGS] = ... FVIRTKEY: ClassVar[ACCELERATOR_FLAGS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.ACCELERATOR_FLAGS: ... @@ -257,7 +257,7 @@ class ACCELERATOR_VK_CODES: VK_Y: ClassVar[ACCELERATOR_VK_CODES] = ... VK_Z: ClassVar[ACCELERATOR_VK_CODES] = ... VK_ZOOM: ClassVar[ACCELERATOR_VK_CODES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.ACCELERATOR_VK_CODES: ... @@ -292,7 +292,7 @@ class ALGORITHMS: SHA_512_ECDSA: ClassVar[ALGORITHMS] = ... SHA_512_RSA: ClassVar[ALGORITHMS] = ... UNKNOWN: ClassVar[ALGORITHMS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.ALGORITHMS: ... @@ -319,7 +319,7 @@ class Attribute(lief.Object): PKCS9_SIGNING_TIME: ClassVar[Attribute.TYPE] = ... SPC_SP_OPUS_INFO: ClassVar[Attribute.TYPE] = ... UNKNOWN: ClassVar[Attribute.TYPE] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.Attribute.TYPE: ... @@ -649,7 +649,7 @@ class CODE_PAGES: X_MAC_THAI: ClassVar[CODE_PAGES] = ... X_MAC_TURKISH: ClassVar[CODE_PAGES] = ... X_MAC_UKRAINIAN: ClassVar[CODE_PAGES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.CODE_PAGES: ... @@ -677,7 +677,7 @@ class CodeView(Debug): PDB_20: ClassVar[CodeView.SIGNATURES] = ... PDB_70: ClassVar[CodeView.SIGNATURES] = ... UNKNOWN: ClassVar[CodeView.SIGNATURES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.CodeView.SIGNATURES: ... @@ -743,7 +743,7 @@ class DIALOG_BOX_STYLES: SETFOREGROUND: ClassVar[DIALOG_BOX_STYLES] = ... SHELLFONT: ClassVar[DIALOG_BOX_STYLES] = ... SYSMODAL: ClassVar[DIALOG_BOX_STYLES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.DIALOG_BOX_STYLES: ... @@ -776,7 +776,7 @@ class DataDirectory(lief.Object): RESOURCE_TABLE: ClassVar[DataDirectory.TYPES] = ... TLS_TABLE: ClassVar[DataDirectory.TYPES] = ... UNKNOWN: ClassVar[DataDirectory.TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.DataDirectory.TYPES: ... @@ -820,7 +820,7 @@ class Debug(lief.Object): RESERVED: ClassVar[Debug.TYPES] = ... UNKNOWN: ClassVar[Debug.TYPES] = ... VC_FEATURE: ClassVar[Debug.TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.Debug.TYPES: ... @@ -922,7 +922,7 @@ class EXTENDED_WINDOW_STYLES: TOPMOST: ClassVar[EXTENDED_WINDOW_STYLES] = ... TRANSPARENT: ClassVar[EXTENDED_WINDOW_STYLES] = ... WINDOWEDGE: ClassVar[EXTENDED_WINDOW_STYLES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.EXTENDED_WINDOW_STYLES: ... @@ -978,7 +978,7 @@ class FIXED_VERSION_FILE_FLAGS: PRERELEASE: ClassVar[FIXED_VERSION_FILE_FLAGS] = ... PRIVATEBUILD: ClassVar[FIXED_VERSION_FILE_FLAGS] = ... SPECIALBUILD: ClassVar[FIXED_VERSION_FILE_FLAGS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.FIXED_VERSION_FILE_FLAGS: ... @@ -1008,7 +1008,7 @@ class FIXED_VERSION_FILE_SUB_TYPES: FONT_TRUETYPE: ClassVar[FIXED_VERSION_FILE_SUB_TYPES] = ... FONT_VECTOR: ClassVar[FIXED_VERSION_FILE_SUB_TYPES] = ... UNKNOWN: ClassVar[FIXED_VERSION_FILE_SUB_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.FIXED_VERSION_FILE_SUB_TYPES: ... @@ -1030,7 +1030,7 @@ class FIXED_VERSION_FILE_TYPES: STATIC_LIB: ClassVar[FIXED_VERSION_FILE_TYPES] = ... UNKNOWN: ClassVar[FIXED_VERSION_FILE_TYPES] = ... VXD: ClassVar[FIXED_VERSION_FILE_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.FIXED_VERSION_FILE_TYPES: ... @@ -1059,7 +1059,7 @@ class FIXED_VERSION_OS: UNKNOWN: ClassVar[FIXED_VERSION_OS] = ... WINDOWS16: ClassVar[FIXED_VERSION_OS] = ... WINDOWS32: ClassVar[FIXED_VERSION_OS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.FIXED_VERSION_OS: ... @@ -1100,7 +1100,7 @@ class Header(lief.Object): REMOVABLE_RUN_FROM_SWAP: ClassVar[Header.CHARACTERISTICS] = ... SYSTEM: ClassVar[Header.CHARACTERISTICS] = ... UP_SYSTEM_ONLY: ClassVar[Header.CHARACTERISTICS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.Header.CHARACTERISTICS: ... @@ -1167,7 +1167,7 @@ class Header(lief.Object): THUMB: ClassVar[Header.MACHINE_TYPES] = ... UNKNOWN: ClassVar[Header.MACHINE_TYPES] = ... WCEMIPSV2: ClassVar[Header.MACHINE_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.Header.MACHINE_TYPES: ... @@ -1203,7 +1203,7 @@ class IMPHASH_MODE: LIEF: ClassVar[IMPHASH_MODE] = ... PEFILE: ClassVar[IMPHASH_MODE] = ... VT: ClassVar[IMPHASH_MODE] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... def __ge__(self, other) -> bool: ... def __gt__(self, other) -> bool: ... @@ -1293,7 +1293,7 @@ class LoadConfiguration(lief.Object): WIN_10_0_MSVC_2019: ClassVar[LoadConfiguration.VERSION] = ... WIN_10_0_MSVC_2019_16: ClassVar[LoadConfiguration.VERSION] = ... WIN_8_1: ClassVar[LoadConfiguration.VERSION] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.LoadConfiguration.VERSION: ... @@ -1355,7 +1355,7 @@ class LoadConfigurationV1(LoadConfigurationV0): RF_INSTRUMENTED: ClassVar[LoadConfigurationV1.IMAGE_GUARD] = ... RF_STRICT: ClassVar[LoadConfigurationV1.IMAGE_GUARD] = ... SECURITY_COOKIE_UNUSED: ClassVar[LoadConfigurationV1.IMAGE_GUARD] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.LoadConfigurationV1.IMAGE_GUARD: ... @@ -1497,7 +1497,7 @@ class OptionalHeader(lief.Object): NX_COMPAT: ClassVar[OptionalHeader.DLL_CHARACTERISTICS] = ... TERMINAL_SERVER_AWARE: ClassVar[OptionalHeader.DLL_CHARACTERISTICS] = ... WDM_DRIVER: ClassVar[OptionalHeader.DLL_CHARACTERISTICS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.OptionalHeader.DLL_CHARACTERISTICS: ... @@ -1556,7 +1556,7 @@ class OptionalHeader(lief.Object): WINDOWS_CUI: ClassVar[OptionalHeader.SUBSYSTEM] = ... WINDOWS_GUI: ClassVar[OptionalHeader.SUBSYSTEM] = ... XBOX: ClassVar[OptionalHeader.SUBSYSTEM] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.OptionalHeader.SUBSYSTEM: ... @@ -1617,7 +1617,7 @@ class OptionalHeader(lief.Object): class PE_TYPE: PE32: ClassVar[PE_TYPE] = ... PE32_PLUS: ClassVar[PE_TYPE] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.PE_TYPE: ... @@ -1667,7 +1667,7 @@ class Pogo(Debug): PGI: ClassVar[Pogo.SIGNATURES] = ... UNKNOWN: ClassVar[Pogo.SIGNATURES] = ... ZERO: ClassVar[Pogo.SIGNATURES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.Pogo.SIGNATURES: ... @@ -1804,7 +1804,7 @@ class RESOURCE_LANGS: WELSH: ClassVar[RESOURCE_LANGS] = ... XHOSA: ClassVar[RESOURCE_LANGS] = ... ZULU: ClassVar[RESOURCE_LANGS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.RESOURCE_LANGS: ... @@ -1855,7 +1855,7 @@ class RelocationEntry(lief.Relocation): SECTION: ClassVar[RelocationEntry.BASE_TYPES] = ... THUMB_MOV32: ClassVar[RelocationEntry.BASE_TYPES] = ... UNKNOWN: ClassVar[RelocationEntry.BASE_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.RelocationEntry.BASE_TYPES: ... @@ -2100,7 +2100,7 @@ class ResourcesManager(lief.Object): STRING: ClassVar[ResourcesManager.TYPE] = ... VERSION: ClassVar[ResourcesManager.TYPE] = ... VXD: ClassVar[ResourcesManager.TYPE] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.ResourcesManager.TYPE: ... @@ -2242,7 +2242,7 @@ class SECTION_TYPES: TEXT: ClassVar[SECTION_TYPES] = ... TLS_: ClassVar[SECTION_TYPES] = ... UNKNOWN: ClassVar[SECTION_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.SECTION_TYPES: ... @@ -2273,7 +2273,7 @@ class SYMBOL_BASE_TYPES: UNION: ClassVar[SYMBOL_BASE_TYPES] = ... VOID: ClassVar[SYMBOL_BASE_TYPES] = ... WORD: ClassVar[SYMBOL_BASE_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.SYMBOL_BASE_TYPES: ... @@ -2293,7 +2293,7 @@ class SYMBOL_COMPLEX_TYPES: FUNCTION: ClassVar[SYMBOL_COMPLEX_TYPES] = ... NULL: ClassVar[SYMBOL_COMPLEX_TYPES] = ... POINTER: ClassVar[SYMBOL_COMPLEX_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.SYMBOL_COMPLEX_TYPES: ... @@ -2311,7 +2311,7 @@ class SYMBOL_SECTION_NUMBER: ABSOLUTE: ClassVar[SYMBOL_SECTION_NUMBER] = ... DEBUG: ClassVar[SYMBOL_SECTION_NUMBER] = ... UNDEFINED: ClassVar[SYMBOL_SECTION_NUMBER] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.SYMBOL_SECTION_NUMBER: ... @@ -2350,7 +2350,7 @@ class SYMBOL_STORAGE_CLASS: UNDEFINED_LABEL: ClassVar[SYMBOL_STORAGE_CLASS] = ... UNION_TAG: ClassVar[SYMBOL_STORAGE_CLASS] = ... WEAK_EXTERNAL: ClassVar[SYMBOL_STORAGE_CLASS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.SYMBOL_STORAGE_CLASS: ... @@ -2401,7 +2401,7 @@ class Section(lief.Section): MEM_SHARED: ClassVar[Section.CHARACTERISTICS] = ... MEM_WRITE: ClassVar[Section.CHARACTERISTICS] = ... TYPE_NO_PAD: ClassVar[Section.CHARACTERISTICS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.Section.CHARACTERISTICS: ... @@ -2471,7 +2471,7 @@ class Signature(lief.Object): HASH_ONLY: ClassVar[Signature.VERIFICATION_CHECKS] = ... LIFETIME_SIGNING: ClassVar[Signature.VERIFICATION_CHECKS] = ... SKIP_CERT_TIME: ClassVar[Signature.VERIFICATION_CHECKS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.Signature.VERIFICATION_CHECKS: ... @@ -2529,7 +2529,7 @@ class Signature(lief.Object): NO_SIGNATURE: ClassVar[Signature.VERIFICATION_FLAGS] = ... OK: ClassVar[Signature.VERIFICATION_FLAGS] = ... UNSUPPORTED_ALGORITHM: ClassVar[Signature.VERIFICATION_FLAGS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.Signature.VERIFICATION_FLAGS: ... @@ -2722,7 +2722,7 @@ class WINDOW_STYLES: THICKFRAME: ClassVar[WINDOW_STYLES] = ... VISIBLE: ClassVar[WINDOW_STYLES] = ... VSCROLL: ClassVar[WINDOW_STYLES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.WINDOW_STYLES: ... @@ -2745,7 +2745,7 @@ class x509(lief.Object): RSA: ClassVar[x509.KEY_TYPES] = ... RSASSA_PSS: ClassVar[x509.KEY_TYPES] = ... RSA_ALT: ClassVar[x509.KEY_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.x509.KEY_TYPES: ... @@ -2769,7 +2769,7 @@ class x509(lief.Object): KEY_CERT_SIGN: ClassVar[x509.KEY_USAGE] = ... KEY_ENCIPHERMENT: ClassVar[x509.KEY_USAGE] = ... NON_REPUDIATION: ClassVar[x509.KEY_USAGE] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.x509.KEY_USAGE: ... @@ -2805,7 +2805,7 @@ class x509(lief.Object): BADCRL_FUTURE: ClassVar[x509.VERIFICATION_FLAGS] = ... BADCRL_NOT_TRUSTED: ClassVar[x509.VERIFICATION_FLAGS] = ... OK: ClassVar[x509.VERIFICATION_FLAGS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PE.x509.VERIFICATION_FLAGS: ... diff --git a/api/python/lief/__init__.pyi b/api/python/lief/__init__.pyi index 4c5651ce38..d94c2e2c42 100644 --- a/api/python/lief/__init__.pyi +++ b/api/python/lief/__init__.pyi @@ -24,7 +24,7 @@ class ARCHITECTURES: SYSZ: ClassVar[ARCHITECTURES] = ... X86: ClassVar[ARCHITECTURES] = ... XCORE: ClassVar[ARCHITECTURES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ARCHITECTURES: ... @@ -45,7 +45,7 @@ class Binary(Object): OAT: ClassVar[Binary.FORMATS] = ... PE: ClassVar[Binary.FORMATS] = ... UNKNOWN: ClassVar[Binary.FORMATS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... def __ge__(self, other) -> bool: ... def __gt__(self, other) -> bool: ... @@ -59,7 +59,7 @@ class Binary(Object): AUTO: ClassVar[Binary.VA_TYPES] = ... RVA: ClassVar[Binary.VA_TYPES] = ... VA: ClassVar[Binary.VA_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... def __ge__(self, other) -> bool: ... def __gt__(self, other) -> bool: ... @@ -136,7 +136,7 @@ class ENDIANNESS: BIG: ClassVar[ENDIANNESS] = ... LITTLE: ClassVar[ENDIANNESS] = ... NONE: ClassVar[ENDIANNESS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.ENDIANNESS: ... @@ -157,7 +157,7 @@ class Function(Symbol): DESTRUCTOR: ClassVar[Function.FLAGS] = ... EXPORTED: ClassVar[Function.FLAGS] = ... IMPORTED: ClassVar[Function.FLAGS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... def __ge__(self, other) -> bool: ... def __gt__(self, other) -> bool: ... @@ -208,7 +208,7 @@ class MODES: V7: ClassVar[MODES] = ... V8: ClassVar[MODES] = ... V9: ClassVar[MODES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.MODES: ... @@ -227,7 +227,7 @@ class OBJECT_TYPES: LIBRARY: ClassVar[OBJECT_TYPES] = ... NONE: ClassVar[OBJECT_TYPES] = ... OBJECT: ClassVar[OBJECT_TYPES] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.OBJECT_TYPES: ... @@ -252,7 +252,7 @@ class PLATFORMS: OSX: ClassVar[PLATFORMS] = ... UNKNOWN: ClassVar[PLATFORMS] = ... WINDOWS: ClassVar[PLATFORMS] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... @staticmethod def from_value(arg: int, /) -> lief.PLATFORMS: ... @@ -313,7 +313,7 @@ class lief_errors: parsing_error: ClassVar[lief_errors] = ... read_error: ClassVar[lief_errors] = ... read_out_of_bound: ClassVar[lief_errors] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... def __ge__(self, other) -> bool: ... def __gt__(self, other) -> bool: ... diff --git a/api/python/lief/logging.pyi b/api/python/lief/logging.pyi index eef04cb9f5..c9b7e93203 100644 --- a/api/python/lief/logging.pyi +++ b/api/python/lief/logging.pyi @@ -9,7 +9,7 @@ class LOGGING_LEVEL: INFO: ClassVar[LOGGING_LEVEL] = ... TRACE: ClassVar[LOGGING_LEVEL] = ... WARNING: ClassVar[LOGGING_LEVEL] = ... - __name__: Any + __name__: str def __init__(self, *args, **kwargs) -> None: ... def __ge__(self, other) -> bool: ... def __gt__(self, other) -> bool: ...