@@ -119,7 +119,7 @@ def _handle_section(self, section: _S, group: _stencils.StencilGroup) -> None:
119
119
raise NotImplementedError (type (self ))
120
120
121
121
def _handle_relocation (
122
- self , base : int , relocation : _R , raw : bytes | bytearray
122
+ self , base : int , relocation : _R , raw : bytearray
123
123
) -> _stencils .Hole :
124
124
raise NotImplementedError (type (self ))
125
125
@@ -297,10 +297,7 @@ def _unwrap_dllimport(self, name: str) -> tuple[_stencils.HoleValue, str | None]
297
297
return _stencils .symbol_to_value (name )
298
298
299
299
def _handle_relocation (
300
- self ,
301
- base : int ,
302
- relocation : _schema .COFFRelocation ,
303
- raw : bytes | bytearray ,
300
+ self , base : int , relocation : _schema .COFFRelocation , raw : bytearray
304
301
) -> _stencils .Hole :
305
302
match relocation :
306
303
case {
@@ -410,10 +407,7 @@ def _handle_section(
410
407
}, section_type
411
408
412
409
def _handle_relocation (
413
- self ,
414
- base : int ,
415
- relocation : _schema .ELFRelocation ,
416
- raw : bytes | bytearray ,
410
+ self , base : int , relocation : _schema .ELFRelocation , raw : bytearray
417
411
) -> _stencils .Hole :
418
412
symbol : str | None
419
413
match relocation :
@@ -492,10 +486,7 @@ def _handle_section(
492
486
stencil .holes .append (hole )
493
487
494
488
def _handle_relocation (
495
- self ,
496
- base : int ,
497
- relocation : _schema .MachORelocation ,
498
- raw : bytes | bytearray ,
489
+ self , base : int , relocation : _schema .MachORelocation , raw : bytearray
499
490
) -> _stencils .Hole :
500
491
symbol : str | None
501
492
match relocation :
0 commit comments