You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extend # type: ignore[code] comments to allow further tagging/scoping/targeting them to a particular type checker (e.g. mypy vs. pyright). Perhaps something like:
This will require co-operation with the rest of the type checking tools, but I'm hoping mypy can lead here.
Pitch
I use both mypy and pyright to check types as their checks don't completely overlap and so using both catches a bit more than just using one. When an ignore is necessary for one but not the other, I'd like to be able to more selectively ignore just for that type checker so that the other continues to check the line.
The text was updated successfully, but these errors were encountered:
Feature
Extend
# type: ignore[code]
comments to allow further tagging/scoping/targeting them to a particular type checker (e.g. mypy vs. pyright). Perhaps something like:aping the PEP 508 environment marker syntax, but any syntax would be ok.
This will require co-operation with the rest of the type checking tools, but I'm hoping mypy can lead here.
Pitch
I use both mypy and pyright to check types as their checks don't completely overlap and so using both catches a bit more than just using one. When an ignore is necessary for one but not the other, I'd like to be able to more selectively ignore just for that type checker so that the other continues to check the line.
The text was updated successfully, but these errors were encountered: