-
-
Couldn't load subscription status.
- Fork 3k
Clarified strict documentation #18903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
10ad5f8
33305cd
94a13ed
733ac09
f6aa39d
9ddaf93
4c100c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -749,8 +749,17 @@ of the above sections. | |
|
|
||
| .. option:: --strict | ||
|
|
||
| This flag mode enables all optional error checking flags. You can see the | ||
| list of flags enabled by strict mode in the full :option:`mypy --help` output. | ||
| This flag mode enables a defined subset of optional error-checking flags. | ||
| This subset primarily includes checks for inadvertent type unsoundness (i.e | ||
| strict will catch type errors as long as intentional methods like type ignore | ||
| or casting were not used.) | ||
|
|
||
| Note: the --warn-unreachable flag documented in :option:`--warn-unreachable` | ||
| is not automatically enabled by the strict flag. | ||
|
|
||
| If both strict and strict-included flags are set, strict does not take precedence | ||
| nor override corresponding flags. You can see the list of flags enabled by strict | ||
|
||
| mode in the full :option:`mypy --help` output. | ||
|
||
|
|
||
| Note: the exact list of flags enabled by running :option:`--strict` may change | ||
| over time. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.