From 9909b755944a62ee6df6c8c8685b579ff298e5bc Mon Sep 17 00:00:00 2001 From: Vyron Vasileiadis Date: Sat, 18 Jul 2026 12:52:29 +0300 Subject: [PATCH] gh-153899: Fix documented parameter names for filecmp.cmpfiles filecmp.cmpfiles() is documented with parameters named dir1 and dir2, but the actual parameters are a and b, so the documented keyword names raise TypeError. Update the documentation to match the real signature. --- Doc/library/filecmp.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/filecmp.rst b/Doc/library/filecmp.rst index f8365b44c5a502d..4488322032c681a 100644 --- a/Doc/library/filecmp.rst +++ b/Doc/library/filecmp.rst @@ -34,9 +34,9 @@ The :mod:`!filecmp` module defines the following functions: file changes. The entire cache may be cleared using :func:`clear_cache`. -.. function:: cmpfiles(dir1, dir2, common, shallow=True) +.. function:: cmpfiles(a, b, common, shallow=True) - Compare the files in the two directories *dir1* and *dir2* whose names are + Compare the files in the two directories *a* and *b* whose names are given by *common*. Returns three lists of file names: *match*, *mismatch*,