-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand type: ignore
documentation
#11354
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
Comments
Per PEP 484:
|
I wish this was mentioned in mypy docs... perhaps in this section |
It is (briefly) covered here, but almost as an aside https://mypy.readthedocs.io/en/stable/cheat_sheet_py3.html#when-you-re-puzzled-or-when-things-are-complicated If you want to suggest a change in a PR I'm happy to take a look, but I think the bigger issue is we don't really talk much about |
type: ignore
commentstype: ignore
documentation
Adds a reference on how # type: ignore can be used. Resolves #11354
Adds a reference on how # type: ignore can be used. Resolves python#11354
Feature
Allowing a short message with your type ignore comments, for better context
Pitch
I wanted to add a little comment with my
type: ignore
to provide some context as to why that ignore is present in the code.This is the thing that I tried:
Unfortunately that doesn't work.
I tried a few other variants, like
# type: ignore; typeshed bug
, but I could find no way to add a message to the ignore comment.It also seems like an easy feature that I could work on :)
The text was updated successfully, but these errors were encountered: