KEMBAR78
Add documentation for type: ignore by tusharsadhwani · Pull Request #11358 · python/mypy · GitHub
Skip to content

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