Skip to content

[Markdown] Update to ~=3.11.4 - #16909

Merged
srittau merged 2 commits into
python:mainfrom
chiliec:markdown-3.11.4
Nov 27, 2026
Merged

srittau merged 2 commits into
python:mainfrom
chiliec:markdown-3.11.4

Conversation

@chiliec

@chiliec chiliec commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Markdown 3.11.4 reworked DelimiterProcessor's caching: increment_next_position was replaced by build_cache, get_cached_result lost its data parameter and pos became optional, and a new EvaluatedText str subclass was added. This updates the stubs to match.

Closes #16906

Tested locally with tests/stubtest_third_party.py Markdown (5 errors before, passes after), plus mypy_test and pyright_test on stubs/Markdown.

@github-actions

This comment has been minimized.

@srittau srittau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This needs a version bump in METADATA.toml.

@chiliec

chiliec commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

The bump is already in this PR: stubs/Markdown/METADATA.toml goes from ~=3.11.3 to ~=3.11.4 (the first file in the diff). 3.11.4 is the latest Markdown release. Did you mean something else?

@srittau srittau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Weird, I could have sworn that the version changed was not shown to me by GitHub. Anyway, one more thing is missing: LinkInlineProcessor now has an __init__ function.

@chiliec

chiliec commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, added LinkInlineProcessor.__init__ in f1d947b. It has the same signature as InlineProcessor.__init__, so stubtest passed without it too, but it now mirrors the runtime class.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@srittau
srittau merged commit 1fbf537 into python:main Nov 27, 2026
74 checks passed
@chiliec
chiliec deleted the markdown-3.11.4 branch November 27, 2026 10:43
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.

Daily tests failed on Thu Nov 26 2026

2 participants