@@ -126,6 +126,8 @@ imports.
126126 compliant packages. Adding this flag will disable this behavior.
127127
128128
129+ .. _platform-configuration :
130+
129131Platform configuration
130132**********************
131133
@@ -169,12 +171,15 @@ For more information on how to use these flags, see :ref:`version_and_platform_c
169171 compile-time constants that are always false. This flag may
170172 be repeated.
171173
172- .. _disallow-any :
174+ .. _disallow-dynamic-typing :
175+
176+ Disallow dynamic typing
177+ ***********************
173178
174- Disallow Any
175- ************
179+ The ``Any `` type is used represent a value that has a :ref: `dynamic type <dynamic-typing >`.
180+ The ``--disallow-any `` family of flags will disallow various uses of the ``Any `` type in
181+ a module -- this lets us strategically disallow the use of dynamic typing in a controlled way.
176182
177- The ``--disallow-any `` family of flags disallows various types of ``Any `` in a module.
178183The following options are available:
179184
180185``--disallow-any-unimported ``
@@ -208,8 +213,6 @@ The following options are available:
208213 ``dict ``) become disallowed as you should use their aliases from the typing
209214 module (such as ``List[int] `` and ``Dict[str, str] ``).
210215
211- .. _disallow-subclassing-any :
212-
213216``--disallow-subclassing-any ``
214217 This flag reports an error whenever a class subclasses a value of
215218 type ``Any ``. This may occur when the base class is imported from
@@ -239,8 +242,6 @@ definitions or calls.
239242 This flag reports an error whenever it encounters a function definition
240243 without type annotations.
241244
242- .. _disallow-incomplete-defs :
243-
244245``--disallow-incomplete-defs ``
245246 This flag reports an error whenever it encounters a partly annotated
246247 function definition.
@@ -258,6 +259,7 @@ definitions or calls.
258259 This flag reports an error whenever a function with type annotations
259260 is decorated with a decorator without annotations.
260261
262+ .. _none-and-optional-handling :
261263
262264None and Optional handling
263265**************************
@@ -299,6 +301,7 @@ For more details, see :ref:`no_strict_optional`.
299301 mypy 0.600, and in previous versions it had to be explicitly enabled
300302 using ``--strict-optional `` (which is still accepted).
301303
304+ .. _configuring-warnings :
302305
303306Configuring warnings
304307********************
@@ -353,6 +356,8 @@ of the above sections.
353356 Note: the exact list of flags enabled by running ``--strict `` may change
354357 over time.
355358
359+ .. _configuring-error-messages :
360+
356361Configuring error messages
357362**************************
358363
@@ -440,6 +445,8 @@ beyond what incremental mode can offer, try running mypy in
440445 We recommend that you try using the :ref: `mypy_daemon ` before
441446 attempting to use this feature.
442447
448+ .. _advanced-flags :
449+
443450Advanced flags
444451**************
445452
@@ -465,6 +472,8 @@ in developing or debugging mypy internals.
465472 submitting them upstream, but also allows you to use a forked version of
466473 typeshed.
467474
475+ .. _warn-incomplete-stub :
476+
468477``--warn-incomplete-stub ``
469478 This flag modifies both the ``--disallow-untyped-defs `` and
470479 ``--disallow-incomplete-defs `` flags so they also report errors
0 commit comments