]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] GH-129805: Clean up some changes from GH-129806 (GH-133540) (#141165)
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Mon, 24 Nov 2025 16:56:15 +0000 (16:56 +0000)
committerGitHub <noreply@github.com>
Mon, 24 Nov 2025 16:56:15 +0000 (18:56 +0200)
Co-authored-by: Brandt Bucher <brandt@python.org>
Tools/jit/_targets.py

index fb30bdb774a33bebceff8f0a4de629f55937234e..34f4e20b95d19bff90ab949f2142cdc42fd5001b 100644 (file)
@@ -102,7 +102,7 @@ class _Target(typing.Generic[_S, _R]):
         raise NotImplementedError(type(self))
 
     def _handle_relocation(
-        self, base: int, relocation: _R, raw: bytes | bytearray
+        self, base: int, relocation: _R, raw: bytearray
     ) -> _stencils.Hole:
         raise NotImplementedError(type(self))
 
@@ -275,10 +275,7 @@ class _COFF(
         return _stencils.symbol_to_value(name)
 
     def _handle_relocation(
-        self,
-        base: int,
-        relocation: _schema.COFFRelocation,
-        raw: bytes | bytearray,
+        self, base: int, relocation: _schema.COFFRelocation, raw: bytearray
     ) -> _stencils.Hole:
         match relocation:
             case {
@@ -373,10 +370,7 @@ class _ELF(
             }, section_type
 
     def _handle_relocation(
-        self,
-        base: int,
-        relocation: _schema.ELFRelocation,
-        raw: bytes | bytearray,
+        self, base: int, relocation: _schema.ELFRelocation, raw: bytearray
     ) -> _stencils.Hole:
         symbol: str | None
         match relocation:
@@ -452,10 +446,7 @@ class _MachO(
             stencil.holes.append(hole)
 
     def _handle_relocation(
-        self,
-        base: int,
-        relocation: _schema.MachORelocation,
-        raw: bytes | bytearray,
+        self, base: int, relocation: _schema.MachORelocation, raw: bytearray
     ) -> _stencils.Hole:
         symbol: str | None
         match relocation: