Skip to content

Add documentation for type: ignore #11358

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

Merged
merged 4 commits into from
Oct 24, 2021

Conversation

tusharsadhwani
Copy link
Contributor

Description

Adds a reference on how # type: ignore can be used.

Resolves #11354

Copy link
Member

@emmatyping emmatyping left a comment

Choose a reason for hiding this comment

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

Few small nitpicks, but otherwise this looks great, thank you!

@JelleZijlstra
Copy link
Member

Should we also mention ignoring specific error codes (# type: ignore[my-error-code])?

@emmatyping
Copy link
Member

Should we also mention ignoring specific error codes (# type: ignore[my-error-code])?

Maybe link to https://mypy.readthedocs.io/en/stable/error_codes.html at the end?

@tusharsadhwani
Copy link
Contributor Author

Added a part on error-codes as well.

@emmatyping emmatyping merged commit 8052c8d into python:master Oct 24, 2021
tushar-deepsource pushed a commit to DeepSourceCorp/mypy that referenced this pull request Jan 20, 2022
Adds a reference on how # type: ignore can be used.

Resolves python#11354
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expand type: ignore documentation
3 participants