@@ -102,7 +102,7 @@ def _handle_section(self, section: _S, group: _stencils.StencilGroup) -> None:
102102 raise NotImplementedError (type (self ))
103103
104104 def _handle_relocation (
105- self , base : int , relocation : _R , raw : bytes | bytearray
105+ self , base : int , relocation : _R , raw : bytearray
106106 ) -> _stencils .Hole :
107107 raise NotImplementedError (type (self ))
108108
@@ -275,10 +275,7 @@ def _unwrap_dllimport(self, name: str) -> tuple[_stencils.HoleValue, str | None]
275275 return _stencils .symbol_to_value (name )
276276
277277 def _handle_relocation (
278- self ,
279- base : int ,
280- relocation : _schema .COFFRelocation ,
281- raw : bytes | bytearray ,
278+ self , base : int , relocation : _schema .COFFRelocation , raw : bytearray
282279 ) -> _stencils .Hole :
283280 match relocation :
284281 case {
@@ -373,10 +370,7 @@ def _handle_section(
373370 }, section_type
374371
375372 def _handle_relocation (
376- self ,
377- base : int ,
378- relocation : _schema .ELFRelocation ,
379- raw : bytes | bytearray ,
373+ self , base : int , relocation : _schema .ELFRelocation , raw : bytearray
380374 ) -> _stencils .Hole :
381375 symbol : str | None
382376 match relocation :
@@ -452,10 +446,7 @@ def _handle_section(
452446 stencil .holes .append (hole )
453447
454448 def _handle_relocation (
455- self ,
456- base : int ,
457- relocation : _schema .MachORelocation ,
458- raw : bytes | bytearray ,
449+ self , base : int , relocation : _schema .MachORelocation , raw : bytearray
459450 ) -> _stencils .Hole :
460451 symbol : str | None
461452 match relocation :
0 commit comments