Skip to content

Commit

Permalink
Document force_union_syntax and force_uppercase_builtins (#16048)
Browse files Browse the repository at this point in the history
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 <Alex.Waygood@Gmail.com>
  • Loading branch information
sobolevn and AlexWaygood committed Sep 5, 2023
1 parent 4496a00 commit 5d9d13e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/source/config_file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,22 @@ These options may only be set in the global section (``[mypy]``).

Show absolute paths to files.

.. confval:: force_uppercase_builtins

:type: boolean
:default: False

Always use ``List`` instead of ``list`` in error messages,
even on Python 3.9+.

.. confval:: force_union_syntax

:type: boolean
:default: False

Always use ``Union[]`` and ``Optional[]`` for union types
in error messages (instead of the ``|`` operator),
even on Python 3.10+.

Incremental mode
****************
Expand Down

0 comments on commit 5d9d13e

Please sign in to comment.