We're going to expose this information in the UI in an upcoming patch.
- Group Reviewers
- rHG2f5a135b2b04: annotate: track whether a particular annotation was the result of a skip
Before I stamp this I'd like an answer to the mutability concerns.
I see that we're copying a ref to the object instead of making an object copy. When we had tuples, that was fine because tuples are immutable. But with attr, instances can be modified.
Will this pose any problems?
Good question! Not in this case, because a particular annotation can never go from skip=True to skip=False. If we decide to overwrite the annotation afterwards, the whole object is replaced, not just fctx and lineno.
Actually -- hmm, you're right, this is a bit risky to code changes in the future -- especially if the same object gets shared between skipped and not-skipped lines. I'll create a new one to be safe.