gh-99238: clarify the type of the env dict. (GH-99253)

(cherry picked from commit 2eee9d9cd7)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
This commit is contained in:
Miss Islington (bot) 2022-11-08 13:09:04 -08:00 committed by GitHub
parent 4f31171e3f
commit 00147a84fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -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::
@ -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::