Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/source/command_line.rst
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@ potentially problematic or redundant in some way.
This limitation will be removed in future releases of mypy.


.. _miscellaneous-strictness-flags:

Miscellaneous strictness flags
******************************

Expand Down
10 changes: 10 additions & 0 deletions docs/source/config_file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,9 @@ no analog available via the command line options.
Miscellaneous strictness flags
******************************

For more information, see the :ref:`Miscellaneous strictness flags <miscellaneous-strictness-flags>`
section of the command line docs.

.. confval:: allow_untyped_globals

:type: boolean
Expand All @@ -529,6 +532,13 @@ Miscellaneous strictness flags
Allows variables to be redefined with an arbitrary type, as long as the redefinition
is in the same block and nesting level as the original definition.

.. confval:: local_partial_types

:type: boolean
:default: False

Disallows inferring variable type for ``None`` from two assignments in different scopes.

.. confval:: disable_error_code

:type: comma-separated list of strings
Expand Down