Skip to content

Conversation

@heathdutton
Copy link

With PEP 649 (deferred annotation evaluation), __annotate__ code objects are stored but not executed during normal program flow. The _find_lines() function was including lines from these code objects, causing them to incorrectly appear as not covered in trace output.

This fix skips __annotate__ code objects when determining executable lines.

@bedevere-app
Copy link

bedevere-app bot commented Dec 25, 2025

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@heathdutton heathdutton force-pushed the gh-142867-fix-trace-count-missing-lines branch from 66ef492 to 27aecaf Compare December 25, 2025 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant