Skip to content

STY: Type the XMP stream as StreamObject rather than ContentStream - #3995

Merged
stefan6419846 merged 1 commit into
py-pdf:mainfrom
RavSinghChandan:fix-xmp-stream-type
Aug 21, 2026
Merged

stefan6419846 merged 1 commit into
py-pdf:mainfrom
RavSinghChandan:fix-xmp-stream-type

Conversation

@RavSinghChandan

Copy link
Copy Markdown
Contributor

XmpInformation is constructed from the /Metadata stream, which is a DecodedStreamObject. ContentStream is a sibling of that class rather than a parent, so the annotation could never hold — the same shape as #3972.

The class only calls get_data, set_data and write_to_stream, all of which StreamObject provides. 18 typeguard failures before, none after.

XmpInformation is constructed from the /Metadata stream, which is a
DecodedStreamObject. ContentStream is a sibling of that class rather than a
parent, so the annotation could never hold.

The class only calls get_data, set_data and write_to_stream, all of which
StreamObject provides.
@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.98%. Comparing base (4c8f707) to head (089bd5a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3995   +/-   ##
=======================================
  Coverage   97.98%   97.98%           
=======================================
  Files          57       57           
  Lines       11098    11098           
  Branches     2078     2078           
=======================================
  Hits        10874    10874           
  Misses        125      125           
  Partials       99       99           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stefan6419846
stefan6419846 merged commit 882b3b2 into py-pdf:main Aug 21, 2026
20 checks passed
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.

2 participants