diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 59390d0e907eb9..525318f6ceff38 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -272,6 +272,13 @@ Directory and files operations .. versionadded:: 3.8 The *dirs_exist_ok* parameter. + .. versionchanged:: 3.8 + The types of the arguments to the *ignore* callable have changed. The + first argument (the directory being visited) can be a string, a + func:`os.DirEntry` or a func:`pathlib.Path`; Previously it was a string. + The second argument is a set of strings; previously it was a list of + strings. + .. function:: rmtree(path, ignore_errors=False, onerror=None) .. index:: single: directory; deleting