-
Notifications
You must be signed in to change notification settings - Fork 83
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
Preserve docstrings in auto-tracing #550
Conversation
Deploying logfire-docs with Cloudflare Pages
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #550 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 132 132
Lines 10095 10100 +5
Branches 1367 1368 +1
=========================================
+ Hits 10095 10100 +5 ☔ View full report in Codecov by Sentry. |
new_body: list[ast.stmt] = [] | ||
if ( | ||
body | ||
and isinstance(body[0], ast.Expr) |
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.
I suppose it is guaranteed that 0
must exist (even if it is just pass
or ...
)?
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.
I'm pretty sure it is, but I started the condition with body and
just in case.
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.
Ah right, at this point Rust's lack of "empty collection is not truthy" has eroded this from my mind 😂
All looks good to me, sorry for the late review 👍 |
Closes #440