diff --git a/Tools/jit/_targets.py b/Tools/jit/_targets.py index 73d10a128756eb..cebfad5a7467d2 100644 --- a/Tools/jit/_targets.py +++ b/Tools/jit/_targets.py @@ -102,7 +102,7 @@ def _handle_section(self, section: _S, group: _stencils.StencilGroup) -> None: raise NotImplementedError(type(self)) def _handle_relocation( - self, base: int, relocation: _R, raw: bytes + self, base: int, relocation: _R, raw: bytes | bytearray ) -> _stencils.Hole: raise NotImplementedError(type(self)) @@ -275,7 +275,10 @@ def _unwrap_dllimport(self, name: str) -> tuple[_stencils.HoleValue, str | None] return _stencils.symbol_to_value(name) def _handle_relocation( - self, base: int, relocation: _schema.COFFRelocation, raw: bytes + self, + base: int, + relocation: _schema.COFFRelocation, + raw: bytes | bytearray, ) -> _stencils.Hole: match relocation: case { @@ -366,7 +369,10 @@ def _handle_section( }, section_type def _handle_relocation( - self, base: int, relocation: _schema.ELFRelocation, raw: bytes + self, + base: int, + relocation: _schema.ELFRelocation, + raw: bytes | bytearray, ) -> _stencils.Hole: symbol: str | None match relocation: @@ -442,7 +448,10 @@ def _handle_section( stencil.holes.append(hole) def _handle_relocation( - self, base: int, relocation: _schema.MachORelocation, raw: bytes + self, + base: int, + relocation: _schema.MachORelocation, + raw: bytes | bytearray, ) -> _stencils.Hole: symbol: str | None match relocation: