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
Emit end line/column in JSON format for span tracking (python#20734)
Recently, mypy gained the ability to output errors/notes as structured
data in JSON format. This data, though, lacks the `end_line` and
`end_column` information from mypy's `ErrorTuple`, which makes it harder
to use for e.g. IDE integrations.
This is a fairly simple PR to just expose those fields in the JSON. I
updated the constructor of `MypyError` to put the new arguments in the
middle rather than at the end because I understand that this is an
internal type, so we're free to make changes like this -- please correct
me if I'm wrong here.
I just updated the existing tests rather than adding new ones, hopefully
this is fine!
A
cc @JelleZijlstra as reviewer of python#11396
Co-authored-by: Adam Turner <turner@hudson-trading.com>
0 commit comments