@@ -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
105+ self , base : int , relocation : _R , raw : bytes | bytearray
106106 ) -> _stencils .Hole :
107107 raise NotImplementedError (type (self ))
108108
@@ -275,7 +275,10 @@ 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 , base : int , relocation : _schema .COFFRelocation , raw : bytes
278+ self ,
279+ base : int ,
280+ relocation : _schema .COFFRelocation ,
281+ raw : bytes | bytearray ,
279282 ) -> _stencils .Hole :
280283 match relocation :
281284 case {
@@ -366,7 +369,10 @@ def _handle_section(
366369 }, section_type
367370
368371 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 ,
370376 ) -> _stencils .Hole :
371377 symbol : str | None
372378 match relocation :
@@ -442,7 +448,10 @@ def _handle_section(
442448 stencil .holes .append (hole )
443449
444450 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 ,
446455 ) -> _stencils .Hole :
447456 symbol : str | None
448457 match relocation :
0 commit comments