GeezerVison is showing github.com — difflib: diff_bytes accepts bytearray (#9031) · python/typeshed@276a4d7
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: stdlib/difflib.pyi +7-7Lines changed: 7 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -127,12 +127,12 @@ class HtmlDiff: | 127 | 127 | def restore(delta: Iterable[str], which: int) -> Iterator[str]: ... | 128 | 128 | def diff_bytes( | 129 | 129 | 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 = ..., | 136 | 136 | n: int = ..., | 137 | | - lineterm: bytes = ..., | | 137 | + lineterm: bytes | bytearray = ..., | 138 | 138 | ) -> Iterator[bytes]: ... |
|