@@ -372,7 +372,7 @@ definitions or calls.
372372
373373.. option :: --untyped-calls-exclude
374374
375- This flag allows to selectively disable :option: `--disallow-untyped-calls `
375+ This flag allows one to selectively disable :option: `--disallow-untyped-calls `
376376 for functions and methods defined in specific packages, modules, or classes.
377377 Note that each exclude entry acts as a prefix. For example (assuming there
378378 are no type annotations for ``third_party_lib `` available):
@@ -562,7 +562,7 @@ potentially problematic or redundant in some way.
562562
563563.. option :: --deprecated-calls-exclude
564564
565- This flag allows to selectively disable :ref: `deprecated<code-deprecated> ` warnings
565+ This flag allows one to selectively disable :ref: `deprecated<code-deprecated> ` warnings
566566 for functions and methods defined in specific packages, modules, or classes.
567567 Note that each exclude entry acts as a prefix. For example (assuming ``foo.A.func `` is deprecated):
568568
@@ -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
@@ -809,6 +822,14 @@ of the above sections.
809822 Note: the exact list of flags enabled by running :option: `--strict ` may change
810823 over time.
811824
825+ .. include :: strict_list.rst
826+ ..
827+ The above file is autogenerated and included during html generation.
828+ (That's an include directive, and this is a comment.)
829+ It would be fine to generate it at some other time instead,
830+ theoretically, but we already had a convenient hook during html gen.
831+
832+
812833.. option :: --disable-error-code
813834
814835 This flag allows disabling one or multiple error codes globally.
@@ -1231,12 +1252,18 @@ Miscellaneous
12311252 stub packages were found, they are installed and then another run
12321253 is performed.
12331254
1234- .. option :: --junit-xml JUNIT_XML
1255+ .. option :: --junit-xml JUNIT_XML_OUTPUT_FILE
12351256
12361257 Causes mypy to generate a JUnit XML test result document with
12371258 type checking results. This can make it easier to integrate mypy
12381259 with continuous integration (CI) tools.
12391260
1261+ .. option :: --junit-format {global ,per_file}
1262+
1263+ If --junit-xml is set, specifies format.
1264+ global (default): single test with all errors;
1265+ per_file: one test entry per file with failures.
1266+
12401267.. option :: --find-occurrences CLASS.MEMBER
12411268
12421269 This flag will make mypy print out all usages of a class member
0 commit comments