[3.14] GH-129805: Clean up some changes from GH-129806 (GH-133540) (#138972)

Co-authored-by: Brandt Bucher <brandt@python.org>
This commit is contained in:
Miss Islington (bot) 2025-10-09 13:12:25 +02:00 committed by GitHub
parent 342b644bd2
commit 7c03e9078d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 18 deletions

View file

@ -140,11 +140,7 @@ class Hole:
def __post_init__(self) -> None:
self.func = _PATCH_FUNCS[self.kind]
def fold(
self,
other: typing.Self,
body: bytes | bytearray,
) -> typing.Self | None:
def fold(self, other: typing.Self, body: bytearray) -> typing.Self | None:
"""Combine two holes into a single hole, if possible."""
instruction_a = int.from_bytes(
body[self.offset : self.offset + 4], byteorder=sys.byteorder