Skip to content
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

Document --disable-error-code cli and config option #9539

Merged
merged 4 commits into from Oct 6, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/source/command_line.rst
Expand Up @@ -480,6 +480,11 @@ of the above sections.
# 'items' now has type List[List[str]]
...

.. option:: --disable-error-code CODE
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The command line option is already documented on line 556.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK removed the duplicate entry I added


This flag will cause mypy to suppress errors with error code ``CODE``.
This flag may be repeated.

.. option:: --local-partial-types

In mypy, the most common cases for partial types are variables initialized using ``None``,
Expand Down
6 changes: 6 additions & 0 deletions docs/source/config_file.rst
Expand Up @@ -529,6 +529,12 @@ Miscellaneous strictness flags
Allows variables to be redefined with an arbitrary type, as long as the redefinition
is in the same block and nesting level as the original definition.

.. confval:: disable_error_code

:type: comma-separated list of strings

Causes mypy to suppress errors with given error codes.
amikrop marked this conversation as resolved.
Show resolved Hide resolved

.. confval:: implicit_reexport

:type: boolean
Expand Down