Skip to content

Commit

Permalink
Add docs about --force-uppercase-builtins and --force-union-syntax (
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Sep 5, 2023
1 parent 5d9d13e commit c090640
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/source/command_line.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit c090640

Please sign in to comment.