Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2.1k
Check for unused pyright: ignore and differentiate from mypy ignores#9397
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
af804b6a2e8a2070ee7872d374cb7e02f34035fd4e9112e14f1264a1File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -327,16 +327,17 @@ class _OrderedDictValuesView(ValuesView[_VT_co], Reversible[_VT_co]): | ||||||||
| # The C implementations of the "views" classes | ||||||||
| # (At runtime, these are called `odict_keys`, `odict_items` and `odict_values`, | ||||||||
| # but they are not exposed anywhere) | ||||||||
| # pyright doesn't have a specific error code for subclassing error! | ||||||||
| @final | ||||||||
| class _odict_keys(dict_keys[_KT_co, _VT_co], Reversible[_KT_co]): # type: ignore[misc] | ||||||||
| class _odict_keys(dict_keys[_KT_co, _VT_co], Reversible[_KT_co]): # type: ignore[misc] # pyright: ignore | ||||||||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we able to add the pyright error codes for these
| ||||||||
| class_odict_keys(dict_keys[_KT_co, _VT_co], Reversible[_KT_co]): # type: ignore[misc] # pyright: ignore | |
| # pyright doesn't have a specific error code for this error! | |
| class_odict_keys(dict_keys[_KT_co, _VT_co], Reversible[_KT_co]): # type: ignore[misc] # pyright: ignore |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -14,7 +14,8 @@ class DebugDocumentProvider(gateways.DebugDocumentProvider): | ||
| def GetDocument(self): ... | ||
| # error: Cannot determine consistent method resolution order (MRO) for "DebugDocumentText" | ||
| class DebugDocumentText(gateways.DebugDocumentInfo, gateways.DebugDocumentText, gateways.DebugDocument): # type: ignore[misc] | ||
| # pyright doesn't have a specific error code for MRO error! | ||
| class DebugDocumentText(gateways.DebugDocumentInfo, gateways.DebugDocumentText, gateways.DebugDocument): # type: ignore[misc] # pyright: ignore | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which pyright error are we ignoring here? Can we add the error code?
| ||
| codeContainer: Incomplete | ||
| def __init__(self, codeContainer) -> None: ... | ||
| def GetName(self, dnt): ... | ||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to your PR but we should probably revisit this and see if it actually makes things better for all type checkers.