Skip to content

Commit

Permalink
Mention how to test third party stubs (#13505)
Browse files Browse the repository at this point in the history
Fixes #12241
  • Loading branch information
hauntsaninja authored Aug 25, 2022
1 parent 448e657 commit 17ec3ca
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/source/command_line.rst
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,8 @@ in developing or debugging mypy internals.
submitting them upstream, but also allows you to use a forked version of
typeshed.

Note that this doesn't affect third-party library stubs.
Note that this doesn't affect third-party library stubs. To test third-party stubs,
for example try ``MYPYPATH=stubs/six mypy ...``.

.. _warn-incomplete-stub:

Expand Down
13 changes: 10 additions & 3 deletions docs/source/config_file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -858,9 +858,16 @@ These options may only be set in the global section (``[mypy]``).

:type: string

Specifies an alternative directory to look for stubs instead of the
default ``typeshed`` directory. User home directory and environment
variables will be expanded.
This specifies the directory where mypy looks for standard library typeshed
stubs, instead of the typeshed that ships with mypy. This is
primarily intended to make it easier to test typeshed changes before
submitting them upstream, but also allows you to use a forked version of
typeshed.

User home directory and environment variables will be expanded.

Note that this doesn't affect third-party library stubs. To test third-party stubs,
for example try ``MYPYPATH=stubs/six mypy ...``.

.. confval:: warn_incomplete_stub

Expand Down

0 comments on commit 17ec3ca

Please sign in to comment.