From 716d87af49428fb774cc292944faf989ef10471b Mon Sep 17 00:00:00 2001 From: sobolevn Date: Tue, 5 Sep 2023 14:51:29 +0300 Subject: [PATCH] Add docs about `--force-uppercase-builtins` and `--force-union-syntax` --- docs/source/command_line.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/source/command_line.rst b/docs/source/command_line.rst index 727d500e2d4d..4e954c7c2ccb 100644 --- a/docs/source/command_line.rst +++ b/docs/source/command_line.rst @@ -789,6 +789,17 @@ in error messages. useful or they may be overly noisy. If ``N`` is negative, there is no limit. The default limit is 200. +.. option:: --force-uppercase-builtins + + Always use ``List`` instead of ``list`` in error messages, + even on Python 3.9+. + +.. option:: --force-union-syntax + + Always use ``Union[]`` and ``Optional[]`` for union types + in error messages (instead of the ``|`` operator), + even on Python 3.10+. + .. _incremental: