[xmldiff] diff_texts also accepts bytes (#14850)

This commit is contained in:
kasium
2025-10-08 10:47:31 +02:00
committed by GitHub
parent 058aa6246b
commit 751525bc74
+4 -2
View File
@@ -47,10 +47,12 @@ def diff_trees(
left: _ET, right: _ET, diff_options: dict[str, Any] | None = None, formatter: None = None
) -> Iterable[_ACTIONS]: ...
@overload
def diff_texts(left: str, right: str, *, diff_options: dict[str, Any] | None = None, formatter: BaseFormatter = ...) -> str: ...
def diff_texts(
left: str | bytes, right: str | bytes, *, diff_options: dict[str, Any] | None = None, formatter: BaseFormatter = ...
) -> str: ...
@overload
def diff_texts(
left: str, right: str, diff_options: dict[str, Any] | None = None, formatter: None = None
left: str | bytes, right: str | bytes, diff_options: dict[str, Any] | None = None, formatter: None = None
) -> Iterable[_ACTIONS]: ...
@overload
def diff_files(left: str, right: str, *, diff_options: dict[str, Any] | None = None, formatter: BaseFormatter = ...) -> str: ...