Skip to content

Commit 5d9d13e

Browse files
Document force_union_syntax and force_uppercase_builtins (#16048)
Users don't know about them: typeddjango/pytest-mypy-plugins#126 Since they are quite important for testing, I think that it is a must to include them. --------- Co-authored-by: Alex Waygood <[email protected]>
1 parent 4496a00 commit 5d9d13e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/source/config_file.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,22 @@ These options may only be set in the global section (``[mypy]``).
816816

817817
Show absolute paths to files.
818818

819+
.. confval:: force_uppercase_builtins
820+
821+
:type: boolean
822+
:default: False
823+
824+
Always use ``List`` instead of ``list`` in error messages,
825+
even on Python 3.9+.
826+
827+
.. confval:: force_union_syntax
828+
829+
:type: boolean
830+
:default: False
831+
832+
Always use ``Union[]`` and ``Optional[]`` for union types
833+
in error messages (instead of the ``|`` operator),
834+
even on Python 3.10+.
819835

820836
Incremental mode
821837
****************

0 commit comments

Comments
 (0)