Skip to content

DOC: Note why the entity declaration flag is typed as a bool - #4000

Merged
stefan6419846 merged 1 commit into
py-pdf:mainfrom
RavSinghChandan:document-expat-bool-int
Aug 24, 2026
Merged

stefan6419846 merged 1 commit into
py-pdf:mainfrom
RavSinghChandan:document-expat-bool-int

Conversation

@RavSinghChandan

Copy link
Copy Markdown
Contributor

Follow-up to #3994, which you offered to merge.

expat passes an int for is_parameter_entity, as documented in expat.h and unchanged since 2003, but typeshed declares the handler with a bool. Running the tests under typeguard reports the mismatch, so a one-line comment recording why the annotation stays as it is should save the next person the same detour.

No behaviour change

expat passes an int for is_parameter_entity, as documented in expat.h and
unchanged since 2003, but typeshed declares the handler with a bool. Running
the tests under typeguard reports the mismatch, so the reason for keeping the
annotation as it stands is worth recording.

Follow-up to py-pdf#3994.
@codecov

codecov Bot commented Aug 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.98%. Comparing base (f6853cc) to head (9f58568).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4000   +/-   ##
=======================================
  Coverage   97.98%   97.98%           
=======================================
  Files          57       57           
  Lines       11104    11104           
  Branches     2080     2080           
=======================================
  Hits        10880    10880           
  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 799f2d8 into py-pdf:main Aug 24, 2026
38 of 48 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