@@ -728,9 +728,22 @@ of the above sections.
728728 if text != b ' other bytes' : # Error: non-overlapping equality check!
729729 ...
730730
731- assert text is not None # OK, check against None is allowed as a special case.
731+ assert text is not None # OK, check against None is allowed
732732
733733
734+ .. option :: --strict-equality-for-none
735+
736+ This flag extends :option: `--strict-equality <mypy --strict-equality> ` for checks
737+ against ``None ``:
738+
739+ .. code-block :: python
740+
741+ text: str
742+ assert text is not None # Error: non-overlapping identity check!
743+
744+ Note that :option: `--strict-equality-for-none <mypy --strict-equality-for-none> `
745+ only works in combination with :option: `--strict-equality <mypy --strict-equality> `.
746+
734747.. option :: --strict-bytes
735748
736749 By default, mypy treats ``bytearray `` and ``memoryview `` as subtypes of ``bytes `` which
@@ -814,6 +827,14 @@ of the above sections.
814827 Note: the exact list of flags enabled by running :option: `--strict ` may change
815828 over time.
816829
830+ .. include :: strict_list.rst
831+ ..
832+ The above file is autogenerated and included during html generation.
833+ (That's an include directive, and this is a comment.)
834+ It would be fine to generate it at some other time instead,
835+ theoretically, but we already had a convenient hook during html gen.
836+
837+
817838.. option :: --disable-error-code
818839
819840 This flag disables one or multiple error codes globally.
@@ -962,11 +983,6 @@ in error messages.
962983 useful or they may be overly noisy. If ``N `` is negative, there is
963984 no limit. The default limit is -1.
964985
965- .. option :: --force-uppercase-builtins
966-
967- Always use ``List `` instead of ``list `` in error messages,
968- even on Python 3.9+.
969-
970986.. option :: --force-union-syntax
971987
972988 Always use ``Union[] `` and ``Optional[] `` for union types
@@ -1264,12 +1280,18 @@ Miscellaneous
12641280 stub packages were found, they are installed and then another run
12651281 is performed.
12661282
1267- .. option :: --junit-xml JUNIT_XML
1283+ .. option :: --junit-xml JUNIT_XML_OUTPUT_FILE
12681284
12691285 Causes mypy to generate a JUnit XML test result document with
12701286 type checking results. This can make it easier to integrate mypy
12711287 with continuous integration (CI) tools.
12721288
1289+ .. option :: --junit-format {global ,per_file}
1290+
1291+ If --junit-xml is set, specifies format.
1292+ global (default): single test with all errors;
1293+ per_file: one test entry per file with failures.
1294+
12731295.. option :: --find-occurrences CLASS.MEMBER
12741296
12751297 This flag will make mypy print out all usages of a class member
0 commit comments