Skip to content

Commit 39e83d1

Browse files
authored
Document local_partial_types config option (#9551)
1 parent a9fa9ab commit 39e83d1

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/source/command_line.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@ potentially problematic or redundant in some way.
453453
This limitation will be removed in future releases of mypy.
454454

455455

456+
.. _miscellaneous-strictness-flags:
457+
456458
Miscellaneous strictness flags
457459
******************************
458460

docs/source/config_file.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,9 @@ no analog available via the command line options.
513513
Miscellaneous strictness flags
514514
******************************
515515

516+
For more information, see the :ref:`Miscellaneous strictness flags <miscellaneous-strictness-flags>`
517+
section of the command line docs.
518+
516519
.. confval:: allow_untyped_globals
517520

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

535+
.. confval:: local_partial_types
536+
537+
:type: boolean
538+
:default: False
539+
540+
Disallows inferring variable type for ``None`` from two assignments in different scopes.
541+
532542
.. confval:: disable_error_code
533543

534544
:type: comma-separated list of strings

0 commit comments

Comments
 (0)