-
Notifications
You must be signed in to change notification settings - Fork 1.5k
BUG: Fix missing "PreventGC" when cloning #3520
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3520 +/- ##
=======================================
Coverage 97.14% 97.14%
=======================================
Files 57 57
Lines 9791 9792 +1
Branches 1775 1775
=======================================
+ Hits 9511 9512 +1
Misses 168 168
Partials 112 112 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
bellini666
left a comment
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.
This fixes the issue for me! 🙏
stefan6419846
left a comment
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.
Thanks for the PR.
Instead of a generic type ignore, could you please use the actual error category there? Additionally, do you see any way to test this (in a manner that it would fail before the change) to avoid accidentally breaking this during any refactoring, especially given that there only are few occasions where this can be reproduced?
I can try :) For the type ignore, do you want me to update the other existing one? |
At least new code should use the "correct" approach, thus updating the existing one is not necessary, but you can improve it as well. |
|
@stefan6419846 I pushed 2 tests, one for the new fix and another one for the old one. Both will fail if I comment out the |
## What's new ### New Features (ENH) - Wrap and align text in flattened PDF forms (#3465) by @PJBrs ### Bug Fixes (BUG) - Fix missing "PreventGC" when cloning (#3520) by @patrick91 - Preserve JPEG image quality by default (#3516) by @Lucas-C [Full Changelog](6.2.0...6.3.0)
We were discussing a bug with @bellini666 and decided to spin up a reproduction and throw it to claude code to see if found the issue, and I think it did :)
You can find the full Claude Code conversation here: https://gist.github.com/patrick91/beb523de5f3942ad6ce7636a2150c8e0
I think this closes #3450 😊
Related #2558
I can't share the PDFs we used because as templates, but I'm pretty sure it works with any PDFs, but this is the script that we used to reproduce it: