Skip to content

Commit 276a4d7

Browse files
difflib: diff_bytes accepts bytearray (#9031)
1 parent 4d3cc1f commit 276a4d7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

stdlib/difflib.pyi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ class HtmlDiff:
127127
def restore(delta: Iterable[str], which: int) -> Iterator[str]: ...
128128
def diff_bytes(
129129
dfunc: Callable[[Sequence[str], Sequence[str], str, str, str, str, int, str], Iterator[str]],
130-
a: Sequence[bytes],
131-
b: Sequence[bytes],
132-
fromfile: bytes = ...,
133-
tofile: bytes = ...,
134-
fromfiledate: bytes = ...,
135-
tofiledate: bytes = ...,
130+
a: Iterable[bytes | bytearray],
131+
b: Iterable[bytes | bytearray],
132+
fromfile: bytes | bytearray = ...,
133+
tofile: bytes | bytearray = ...,
134+
fromfiledate: bytes | bytearray = ...,
135+
tofiledate: bytes | bytearray = ...,
136136
n: int = ...,
137-
lineterm: bytes = ...,
137+
lineterm: bytes | bytearray = ...,
138138
) -> Iterator[bytes]: ...

0 commit comments

Comments
 (0)