diff --git a/docs/source/config_file.rst b/docs/source/config_file.rst index c0798bbf03f1..b5ce23ff11ec 100644 --- a/docs/source/config_file.rst +++ b/docs/source/config_file.rst @@ -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 ****************