Skip to content

Commit c090640

Browse files
authored
Add docs about --force-uppercase-builtins and --force-union-syntax (#16049)
Refs #16048
1 parent 5d9d13e commit c090640

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/source/command_line.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,17 @@ in error messages.
789789
useful or they may be overly noisy. If ``N`` is negative, there is
790790
no limit. The default limit is 200.
791791

792+
.. option:: --force-uppercase-builtins
793+
794+
Always use ``List`` instead of ``list`` in error messages,
795+
even on Python 3.9+.
796+
797+
.. option:: --force-union-syntax
798+
799+
Always use ``Union[]`` and ``Optional[]`` for union types
800+
in error messages (instead of the ``|`` operator),
801+
even on Python 3.10+.
802+
792803

793804
.. _incremental:
794805

0 commit comments

Comments
 (0)