@@ -102,7 +102,7 @@ def _handle_section(self, section: _S, group: _stencils.StencilGroup) -> None:
102
102
raise NotImplementedError (type (self ))
103
103
104
104
def _handle_relocation (
105
- self , base : int , relocation : _R , raw : bytes
105
+ self , base : int , relocation : _R , raw : bytes | bytearray
106
106
) -> _stencils .Hole :
107
107
raise NotImplementedError (type (self ))
108
108
@@ -275,7 +275,10 @@ def _unwrap_dllimport(self, name: str) -> tuple[_stencils.HoleValue, str | None]
275
275
return _stencils .symbol_to_value (name )
276
276
277
277
def _handle_relocation (
278
- self , base : int , relocation : _schema .COFFRelocation , raw : bytes
278
+ self ,
279
+ base : int ,
280
+ relocation : _schema .COFFRelocation ,
281
+ raw : bytes | bytearray ,
279
282
) -> _stencils .Hole :
280
283
match relocation :
281
284
case {
@@ -366,7 +369,10 @@ def _handle_section(
366
369
}, section_type
367
370
368
371
def _handle_relocation (
369
- self , base : int , relocation : _schema .ELFRelocation , raw : bytes
372
+ self ,
373
+ base : int ,
374
+ relocation : _schema .ELFRelocation ,
375
+ raw : bytes | bytearray ,
370
376
) -> _stencils .Hole :
371
377
symbol : str | None
372
378
match relocation :
@@ -442,7 +448,10 @@ def _handle_section(
442
448
stencil .holes .append (hole )
443
449
444
450
def _handle_relocation (
445
- self , base : int , relocation : _schema .MachORelocation , raw : bytes
451
+ self ,
452
+ base : int ,
453
+ relocation : _schema .MachORelocation ,
454
+ raw : bytes | bytearray ,
446
455
) -> _stencils .Hole :
447
456
symbol : str | None
448
457
match relocation :
0 commit comments