Skip to content

Commit ddbe761

Browse files
committed
Add note explaining that mypy only supports one global python_version per run
1 parent 51c2d18 commit ddbe761

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/source/config_file.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,16 @@ Platform configuration
437437

438438
This option may only be set in the global section (``[mypy]``).
439439

440+
.. note::
441+
442+
**Using multiple Python versions in a monorepo**
443+
444+
Mypy currently supports only **one global target Python version** per run.
445+
The configuration option :confval:`python_version` can be set **only in the
446+
global section** of the configuration file. This means that a single
447+
invocation of mypy cannot type-check different parts of a monorepo using
448+
different Python versions.
449+
440450
.. confval:: platform
441451

442452
:type: string

0 commit comments

Comments
 (0)