8000 GH-118174: specify the type for the path argument of shutil.which · python/cpython@97feb4a · GitHub
[go: up one dir, main page]

Skip to content

Commit 97feb4a

Browse files
authored
GH-118174: specify the type for the path argument of shutil.which
1 parent c408c36 commit 97feb4a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/shutil.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,9 @@ Directory and files operations
449449
*mode* is a permission mask passed to :func:`os.access`, by default
450450
determining if the file exists and executable.
451451

452-
When no *path* is specified, the results of :func:`os.environ` are used,
453-
returning either the "PATH" value or a fallback of :data:`os.defpath`.
452+
*path* is a "``PATH`` string" specifying the lookup directory list. When no
453+
*path* is specified, the results of :func:`os.environ` are used, returning
454+
either the "PATH" value or a fallback of :data:`os.defpath`.
454455

455456
On Windows, the current directory is prepended to the *path* if *mode* does
456457
not include ``os.X_OK``. When the *mode* does include ``os.X_OK``, the

0 commit comments

Comments
 (0)
0