gfw.common.diff.compare_items#

compare_items(a, b)[source]#

Generate a rich diff of two objects’ pretty-printed representations.

Parameters:
  • a (Any) – First object to compare.

  • b (Any) – Second object to compare.

Returns:

The object returned by diff_lines.

Return type:

Tuple[str, str, bool]