Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/source/config_file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,18 @@ section of the command line docs.
to suppress the import of a module from ``typeshed``, replacing it
with ``Any``.

For example, suppose your code monkey-patches ``email.message`` with extra
members that are not declared in its ``typeshed`` stub. You can treat
imports from that module as ``Any`` with a per-module section:

.. code-block:: ini

[mypy]

[mypy-email.message]
follow_imports = skip
follow_imports_for_stubs = True

Used in conjunction with :confval:`follow_imports=error <follow_imports>`, this can be used
to make any use of a particular ``typeshed`` module an error.

Expand Down
Loading