Skip to content

Commit

Permalink
Add security documentation for --install-types (#10555)
Browse files Browse the repository at this point in the history
Resolves #10538
  • Loading branch information
TheCleric committed May 30, 2021
1 parent 61c3462 commit d57d5d1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/source/command_line.rst
Expand Up @@ -876,8 +876,11 @@ Miscellaneous

This flag causes mypy to install known missing stub packages for
third-party libraries using pip. It will display the pip command
line to run, and expects a confirmation before installing
anything.
that will be run, and expects a confirmation before installing
anything. For security reasons, these stubs are limited to only a
small subset of manually selected packages that have been
verified by the typeshed team. These packages include only stub
files and no executable code.

If you use this option without providing any files or modules to
type check, mypy will install stub packages suggested during the
Expand All @@ -889,8 +892,8 @@ Miscellaneous
.. note::

This is new in mypy 0.900. Previous mypy versions included a
selection of third-party package stubs, instead of having them
installed separately.
selection of third-party package stubs, instead of having
them installed separately.

.. option:: --junit-xml JUNIT_XML

Expand Down

0 comments on commit d57d5d1

Please sign in to comment.