]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-118174: specify the type for the path argument of shutil.which
authorFilipe Laíns <lains@riseup.net>
Wed, 1 May 2024 23:13:32 +0000 (00:13 +0100)
committerGitHub <noreply@github.com>
Wed, 1 May 2024 23:13:32 +0000 (00:13 +0100)
Doc/library/shutil.rst

index 8e5828c789e4e239793ea3b95996f6270484c247..542d288647779244817e916547e7ecc6b63655c0 100644 (file)
@@ -449,8 +449,9 @@ Directory and files operations
    *mode* is a permission mask passed to :func:`os.access`, by default
    determining if the file exists and executable.
 
-   When no *path* is specified, the results of :func:`os.environ` are used,
-   returning either the "PATH" value or a fallback of :data:`os.defpath`.
+   *path* is a "``PATH`` string" specifying the lookup directory list. When no
+   *path* is specified, the results of :func:`os.environ` are used, returning
+   either the "PATH" value or a fallback of :data:`os.defpath`.
 
    On Windows, the current directory is prepended to the *path* if *mode* does
    not include ``os.X_OK``. When the *mode* does include ``os.X_OK``, the