Skip to content
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

MAINT: Remove unnecessary property + mypy fixes #2099

Merged
merged 4 commits into from
Aug 19, 2023
Merged

Conversation

MartinThoma
Copy link
Member

@MartinThoma MartinThoma commented Aug 19, 2023

If the property does nothing else than wrapping an attribute, we can use the attribute directly. Once we need the property, we can re-introduce it.

While on it, pre-commit was also updated + the ruff version in CI.

Taken from #2086

While on it, pre-commit was also updated

Taken from #2086

Co-authored-by: Lucas Cimon <925560+Lucas-C@users.noreply.github.com>
@MartinThoma
Copy link
Member Author

This seems to give a slight speed boost, but nothing significant. Hence it's not labeled with nf-performance Non-functional change: Performance .

@MartinThoma MartinThoma changed the title MAINT: Remove unnecessary decorator + mypy fixes MAINT: Remove unnecessary property + mypy fixes Aug 19, 2023
@codecov
Copy link

codecov bot commented Aug 19, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01% ⚠️

Comparison is base (29acc0c) 94.18% compared to head (6c90dcc) 94.17%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2099      +/-   ##
==========================================
- Coverage   94.18%   94.17%   -0.01%     
==========================================
  Files          41       41              
  Lines        7389     7385       -4     
  Branches     1459     1459              
==========================================
- Hits         6959     6955       -4     
  Misses        267      267              
  Partials      163      163              
Files Changed Coverage Δ
pypdf/_page.py 93.65% <100.00%> (ø)
pypdf/filters.py 94.53% <100.00%> (ø)
pypdf/generic/_base.py 100.00% <100.00%> (ø)
pypdf/generic/_data_structures.py 92.48% <100.00%> (-0.06%) ⬇️
pypdf/pagerange.py 100.00% <100.00%> (ø)
pypdf/papersizes.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MartinThoma MartinThoma merged commit b39ac96 into main Aug 19, 2023
14 checks passed
@MartinThoma MartinThoma deleted the maint-simplify branch August 19, 2023 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant