From 7087ab2131aa5ff6d45d2022a5e57ad6997ed134 Mon Sep 17 00:00:00 2001 From: Amin Jamal Date: Thu, 9 Oct 2025 22:50:04 +0200 Subject: [PATCH] chore: update __repr__ of Delta --- src/diff/delta.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/diff/delta.py b/src/diff/delta.py index 32cf079..855f5dc 100644 --- a/src/diff/delta.py +++ b/src/diff/delta.py @@ -8,3 +8,9 @@ class Delta: path: str new_value: typing.Any | None old_value: typing.Any | None + + def __repr__(self): + return ( + f"Delta(operation='{self.operation}', path='{self.path}', " + f"new_value={self.new_value!r}, old_value={self.old_value!r})" + )