Skip to content

Commit d57d5d1

Browse files
authored
Add security documentation for --install-types (#10555)
Resolves #10538
1 parent 61c3462 commit d57d5d1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/source/command_line.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -876,8 +876,11 @@ Miscellaneous
876876

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

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

891894
This is new in mypy 0.900. Previous mypy versions included a
892-
selection of third-party package stubs, instead of having them
893-
installed separately.
895+
selection of third-party package stubs, instead of having
896+
them installed separately.
894897

895898
.. option:: --junit-xml JUNIT_XML
896899

0 commit comments

Comments
 (0)