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: Reduce usage of b_ #2100

Merged
merged 6 commits into from
Aug 20, 2023
Merged

MAINT: Reduce usage of b_ #2100

merged 6 commits into from
Aug 20, 2023

Conversation

MartinThoma
Copy link
Member

Related to #2099

@codecov
Copy link

codecov bot commented Aug 19, 2023

Codecov Report

Patch coverage: 86.95% and project coverage change: -0.02% ⚠️

Comparison is base (b39ac96) 94.17% compared to head (fa29a55) 94.16%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2100      +/-   ##
==========================================
- Coverage   94.17%   94.16%   -0.02%     
==========================================
  Files          41       41              
  Lines        7385     7385              
  Branches     1459     1459              
==========================================
- Hits         6955     6954       -1     
- Misses        267      268       +1     
  Partials      163      163              
Files Changed Coverage Δ
pypdf/filters.py 94.52% <ø> (-0.02%) ⬇️
pypdf/generic/_data_structures.py 92.36% <75.00%> (-0.12%) ⬇️
pypdf/_reader.py 91.71% <100.00%> (ø)
pypdf/_writer.py 87.62% <100.00%> (ø)
pypdf/generic/_base.py 100.00% <100.00%> (ø)

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

@@ -820,7 +820,7 @@ def _clone(

def hash_value_data(self) -> bytes:
data = super().hash_value_data()
data += b_(self._data)
data += self._data
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That doesn't look quite right for a hash function.

@MartinThoma MartinThoma added the soon PRs that are almost ready to be merged, issues that get solved pretty soon label Aug 19, 2023
@MartinThoma MartinThoma merged commit 3033122 into main Aug 20, 2023
12 of 14 checks passed
@MartinThoma MartinThoma deleted the mypy/content-stream-setter-type branch August 20, 2023 07:22
@MartinThoma MartinThoma changed the title MAINT: ContentType._data setter uses only bytes MAINT: Reduce usage of b_ Aug 20, 2023
@MartinThoma MartinThoma removed the soon PRs that are almost ready to be merged, issues that get solved pretty soon label Sep 3, 2023
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