-
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
STY: Slightly increase readability #3098
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3098 +/- ##
==========================================
+ Coverage 96.48% 96.51% +0.03%
==========================================
Files 52 53 +1
Lines 8808 8875 +67
Branches 1613 1622 +9
==========================================
+ Hits 8498 8566 +68
Misses 185 185
+ Partials 125 124 -1 ☔ View full report in Codecov by Sentry. |
pypdf/_page.py
Outdated
index = len_self + index | ||
if index < 0 or index >= len_self: | ||
index += len_self | ||
if not 0 <= index < len_self: |
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 am not sure about this - for me, the old variant is easier to understand.
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.
Once you get used to it is quicker to parse.
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 honestly have some doubts about this and the old way, the grouping has been easier to grasp - even when dealing with Python code on a daily basis. This needs some further thinking about before merging.
No description provided.