-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
BUG: Fix conversion from 1 to LA #2175
Conversation
@MartinThoma
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2175 +/- ##
=======================================
Coverage 94.25% 94.25%
=======================================
Files 42 42
Lines 7556 7558 +2
Branches 1487 1488 +1
=======================================
+ Hits 7122 7124 +2
Misses 266 266
Partials 168 168
☔ View full report in Codecov by Sentry. 📢 Have feedback on the report? Share it here. |
@MartinThoma |
I cannot see the third violation in CI (this should be related to the For the other issues, see #2108. You should either refactor the code to reduce complexity or be able to justify why the increased complexity is necessary and cannot be avoided. |
the refactoring required is too important to be part of this PR : this will require an idenpendant PR. about the subprocess it should be part of an independant PR too for traceeability |
You are not asked to do the refactoring of the complete code, but only for the corresponding section. I do not really see why this cannot be part of this PR - the chosen approach is to slowly refactor the sections which are changed anyway to not do everything at once. And as you are working on the corresponding code section, you already show that you understand enough of it to be able to safely refactor it, assuming that our test coverage is sufficient. And as already mentioned: The |
The two style issues we currently see are
I'll check how we can change that :-) |
Good work @pubpub-zz 👍 |
I like that the PR is clean / minimal. It was a good decision to not include refactoring in it, as that would have made the review way more complex. I'll take care of that now |
This probably is a matter of taste: In general, projects prefer the current contributor to fix all issues introduced with the current PR from what I have seen in the past (my GitHub activity is non-representative here). Maybe I am a bit opinionated about this as well due to doing a lot of code quality stuff. In the end, it is up to you as the maintainer to decide on how you handle this, as long as this is a consistent behaviour which is applied equally to all changes. |
## What's new ### Security (SEC) - Infinite recursion caused by IndirectObject clone (#2156) ### New Features (ENH) - Ease access to ViewerPreferences (#2144) ### Bug Fixes (BUG) - catch the case where w[0] is an IndirectObject instead of an int (#2154) - Cope with indirect objects in filters and remove deprecated code (#2177) - Cope with extra space (#2151) - Merge pages without resources (#2150) - getcontents() shall return None if contents is NullObject (#2161) - Fix conversion from 1 to LA (#2175) - Accept tabs in cmaps (#2174) ### Robustness (ROB) - Accept XYZ with no arguments (#2178) [Full Changelog](3.15.5...3.16.0)
Typically, I would agree that issues should be fixed within the PR. However, there are some exceptions:
|
Closes #2165
Closes #2176