Skip to content

Commit

Permalink
gh-99238: clarify the type of the env dict. (GH-99253)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2eee9d9)

Co-authored-by: Gregory P. Smith <[email protected]>
  • Loading branch information
miss-islington and gpshead authored Nov 8, 2022
1 parent 4f31171 commit 00147a8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Doc/library/subprocess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ underlying :class:`Popen` interface can be used directly.

If *env* is not ``None``, it must be a mapping that defines the environment
variables for the new process; these are used instead of the default
behavior of inheriting the current process' environment. It is passed directly
to :class:`Popen`.
behavior of inheriting the current process' environment. It is passed
directly to :class:`Popen`. This mapping can be str to str on any platform
or bytes to bytes on POSIX platforms much like :data:`os.environ` or
:data:`os.environb`.

Examples::

Expand Down Expand Up @@ -619,7 +621,9 @@ functions.

If *env* is not ``None``, it must be a mapping that defines the environment
variables for the new process; these are used instead of the default
behavior of inheriting the current process' environment.
behavior of inheriting the current process' environment. This mapping can be
str to str on any platform or bytes to bytes on POSIX platforms much like
:data:`os.environ` or :data:`os.environb`.

.. note::

Expand Down

0 comments on commit 00147a8

Please sign in to comment.