From c6682effc7b04f233c8021d67649fed3fb68ae82 Mon Sep 17 00:00:00 2001 From: Nicolas Kruse Date: Wed, 23 Jul 2025 23:01:41 +0200 Subject: [PATCH] Update __init__.py to fix typing of self._data to bytes --- src/pelfy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pelfy/__init__.py b/src/pelfy/__init__.py index ca5aa0e..90bd993 100644 --- a/src/pelfy/__init__.py +++ b/src/pelfy/__init__.py @@ -371,7 +371,7 @@ class elf_file: data: binary ELF data """ assert isinstance(data, (bytes, bytearray)), 'Binary ELF data must be provided as bytes or bytearray.' - self._data = data + self._data = bytes(data) # Defaults required for function _read_int_from_elf_field self.bit_width = 32