@@ -114,7 +114,7 @@ def _handle_section(self, section: _S, group: _stencils.StencilGroup) -> None:
114
114
raise NotImplementedError (type (self ))
115
115
116
116
def _handle_relocation (
117
- self , base : int , relocation : _R , raw : bytes | bytearray
117
+ self , base : int , relocation : _R , raw : bytearray
118
118
) -> _stencils .Hole :
119
119
raise NotImplementedError (type (self ))
120
120
@@ -282,10 +282,7 @@ def _unwrap_dllimport(self, name: str) -> tuple[_stencils.HoleValue, str | None]
282
282
return _stencils .symbol_to_value (name )
283
283
284
284
def _handle_relocation (
285
- self ,
286
- base : int ,
287
- relocation : _schema .COFFRelocation ,
288
- raw : bytes | bytearray ,
285
+ self , base : int , relocation : _schema .COFFRelocation , raw : bytearray
289
286
) -> _stencils .Hole :
290
287
match relocation :
291
288
case {
@@ -380,10 +377,7 @@ def _handle_section(
380
377
}, section_type
381
378
382
379
def _handle_relocation (
383
- self ,
384
- base : int ,
385
- relocation : _schema .ELFRelocation ,
386
- raw : bytes | bytearray ,
380
+ self , base : int , relocation : _schema .ELFRelocation , raw : bytearray
387
381
) -> _stencils .Hole :
388
382
symbol : str | None
389
383
match relocation :
@@ -459,10 +453,7 @@ def _handle_section(
459
453
stencil .holes .append (hole )
460
454
461
455
def _handle_relocation (
462
- self ,
463
- base : int ,
464
- relocation : _schema .MachORelocation ,
465
- raw : bytes | bytearray ,
456
+ self , base : int , relocation : _schema .MachORelocation , raw : bytearray
466
457
) -> _stencils .Hole :
467
458
symbol : str | None
468
459
match relocation :
0 commit comments