Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add documentation for type: ignore - #11358

Merged
emmatyping merged 4 commits into
python:masterfrom
tusharsadhwani:docs/type-ignore
Oct 24, 2021
Merged

Add documentation for type: ignore#11358
emmatyping merged 4 commits into
python:masterfrom
tusharsadhwani:docs/type-ignore

Conversation

@tusharsadhwani

Copy link
Copy Markdown
Contributor

Description

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

Resolves #11354

@emmatyping emmatyping left a comment

Copy link
Copy Markdown
Member

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!

Comment thread docs/source/type_inference_and_annotations.rst Outdated
Comment thread docs/source/type_inference_and_annotations.rst Outdated
Comment thread docs/source/type_inference_and_annotations.rst Outdated
@JelleZijlstra

Copy link
Copy Markdown
Member

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

@emmatyping

Copy link
Copy Markdown
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
Copy Markdown
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