@@ -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
@@ -1242,12 +1255,18 @@ Miscellaneous
12421255 stub packages were found, they are installed and then another run
12431256 is performed.
12441257
1245- .. option :: --junit-xml JUNIT_XML
1258+ .. option :: --junit-xml JUNIT_XML_OUTPUT_FILE
12461259
12471260 Causes mypy to generate a JUnit XML test result document with
12481261 type checking results. This can make it easier to integrate mypy
12491262 with continuous integration (CI) tools.
12501263
1264+ .. option :: --junit-format {global ,per_file}
1265+
1266+ If --junit-xml is set, specifies format.
1267+ global (default): single test with all errors;
1268+ per_file: one test entry per file with failures.
1269+
12511270.. option :: --find-occurrences CLASS.MEMBER
12521271
12531272 This flag will make mypy print out all usages of a class member
0 commit comments