@@ -97,7 +97,7 @@ def _handle_section(self, section: _S, group: _stencils.StencilGroup) -> None:
97
97
raise NotImplementedError (type (self ))
98
98
99
99
def _handle_relocation (
100
- self , base : int , relocation : _R , raw : bytes
100
+ self , base : int , relocation : _R , raw : bytes | bytearray
101
101
) -> _stencils .Hole :
102
102
raise NotImplementedError (type (self ))
103
103
@@ -257,7 +257,10 @@ def _unwrap_dllimport(self, name: str) -> tuple[_stencils.HoleValue, str | None]
257
257
return _stencils .symbol_to_value (name )
258
258
259
259
def _handle_relocation (
260
- self , base : int , relocation : _schema .COFFRelocation , raw : bytes
260
+ self ,
261
+ base : int ,
262
+ relocation : _schema .COFFRelocation ,
263
+ raw : bytes | bytearray ,
261
264
) -> _stencils .Hole :
262
265
match relocation :
263
266
case {
@@ -348,7 +351,10 @@ def _handle_section(
348
351
}, section_type
349
352
350
353
def _handle_relocation (
351
- self , base : int , relocation : _schema .ELFRelocation , raw : bytes
354
+ self ,
355
+ base : int ,
356
+ relocation : _schema .ELFRelocation ,
357
+ raw : bytes | bytearray ,
352
358
) -> _stencils .Hole :
353
359
symbol : str | None
354
360
match relocation :
@@ -424,7 +430,10 @@ def _handle_section(
424
430
stencil .holes .append (hole )
425
431
426
432
def _handle_relocation (
427
- self , base : int , relocation : _schema .MachORelocation , raw : bytes
433
+ self ,
434
+ base : int ,
435
+ relocation : _schema .MachORelocation ,
436
+ raw : bytes | bytearray ,
428
437
) -> _stencils .Hole :
429
438
symbol : str | None
430
439
match relocation :
0 commit comments