Skip to content

Commit 5edeeab

Browse files
weddigehauntsaninja
authored andcommitted
Remove misleading list of default locations (#10614)
The list of location in the second paragraph was missing pyproject.toml and the user config files. This change refers to the complete list in the previous paragraph instead of listing all locations again. Co-authored-by: Shantanu <[email protected]>
1 parent 12cf0bf commit 5edeeab

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/source/config_file.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ to read a different file instead (see :ref:`config-file-flag`).
1313
It is important to understand that there is no merging of configuration
1414
files, as it would lead to ambiguity. The :option:`--config-file <mypy --config-file>` flag
1515
has the highest precedence and must be correct; otherwise mypy will report
16-
an error and exit. Without command line option, mypy will look for defaults,
17-
but will use only one of them. The first one to read is ``mypy.ini``,
18-
then ``.mypy.ini``, and finally ``setup.cfg``.
16+
an error and exit. Without command line option, mypy will look for configuration files in the above mentioned order.
1917

2018
Most flags correspond closely to :ref:`command-line flags
2119
<command-line>` but there are some differences in flag names and some

0 commit comments

Comments
 (0)