-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Don't call --strict-optional and --incremental experimental #4642
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
Conversation
Also stop documenting strict_optional_whitelist, since it has been long since obsoleted, with the idea of removing it soon.
docs/source/command_line.rst
Outdated
- ``--incremental`` enables a module cache, using results from | ||
previous runs to speed up type checking. Incremental mode can help | ||
when most parts of your program haven't changed since the previous | ||
mypy run. A companion flag is ``--cache-dir DIR``, which specifies |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to make --cache-dir
a separate bullet point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just one suggestion.
- ``--strict-optional`` enables strict checking of ``Optional[...]`` | ||
types and ``None`` values. Without this option, mypy doesn't | ||
generally check the use of ``None`` values -- they are valid | ||
everywhere. See :ref:`strict_optional` for more about this feature. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestion: depending on how soon, you might want to mention this flag will become default soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(But if you could also add the remark suggested by Ethan in his review that would be great.)
* master: (27 commits) Don't call --strict-optional and --incremental experimental (python#4642) Sync typeshed (python#4641) Fix callable types with inconsistent argument counts (python#4611) Fix example (add 'class A:') Make psutil an optional dependency (python#4634) mypy and mypy_extensions aren't posix only (python#3765) Documentation for attr support (python#4632) Use read_with_python_encoding in stubgen to handle file encoding (python#3790) Sync typeshed (python#4631) Add remaining core team emails to CREDITS (python#4629) Fix issues with attr code. (python#4628) Better support for converter in attrs plugin. (python#4607) Clean up credits (python#4626) Support type aliases in fine-grained incremental mode (python#4525) Fine-grained: Fix crash caused by unreachable class (python#4613) Treat divmod like a binary operator (python#4585) Sync typeshed (python#4605) Fine-grained: Don't infer partial types from multiple targets (python#4553) Fine-grained: Compare symbol table snapshots when following dependencies (python#4598) Fix type of forward reference to a decorated class method (python#4486) ...
Also stop documenting strict_optional_whitelist, since it has been
long since obsoleted, with the idea of removing it soon.