From daec89fedd59ae20d40a0b4e354aca5b32ed5a07 Mon Sep 17 00:00:00 2001 From: pacocartones Date: Sun, 30 Aug 2026 00:40:39 +0000 Subject: [PATCH] docs(stats): update get_stats() example to current output The get_stats() example in stats.rst predates the multiprocessing support added in 9.1.0: it still shows DIFF COUNT 37 / DISTANCE CACHE HIT COUNT 0 and omits the four WORKER * keys that get_stats() now always returns (a test, test_serial_run_exposes_worker_keys_zeroed, enforces their presence). The .rst files are not run as doctests, so the drift went unnoticed. This updates the example to the exact current output (run against dev). --- deepdiff/docstrings/stats.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/deepdiff/docstrings/stats.rst b/deepdiff/docstrings/stats.rst index a3292aec..14496f22 100644 --- a/deepdiff/docstrings/stats.rst +++ b/deepdiff/docstrings/stats.rst @@ -68,11 +68,15 @@ For example: >>> >>> diff = DeepDiff(t1, t2, ignore_order=True, cache_size=5000, cutoff_intersection_for_pairs=1) >>> pprint(diff.get_stats()) - {'DIFF COUNT': 37, - 'DISTANCE CACHE HIT COUNT': 0, + {'DIFF COUNT': 54, + 'DISTANCE CACHE HIT COUNT': 9, 'MAX DIFF LIMIT REACHED': False, 'MAX PASS LIMIT REACHED': False, - 'PASSES COUNT': 7} + 'PASSES COUNT': 7, + 'WORKER BATCH COUNT': 0, + 'WORKER DIFF COUNT': 0, + 'WORKER DISTANCE CACHE HIT COUNT': 0, + 'WORKER PASSES COUNT': 0} Back to :doc:`/index`