markupsafe breaking changes
markupsafe 3.0.3 (September 27, 2025) is its newest release with breaking changes. The first: Behavior changed markupsafe.__version__. Every breaking API change we have recorded in markupsafe on PyPI: 61 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.0.4, released October 2, 2026.
Its 3.0.0 release drops Python 3.7 and 3.8. Python end of life dates.
- From 2.0.0 to 3.0.3: 54 breaking changes in 2 versions.
- From 1.0 to 3.0.3: 60 breaking changes in 3 versions.
markupsafe 3.0.3 breaking changes
- Behavior changed
markupsafe.__version__
The warning raised when reading the __version__ attribute is now a DeprecationWarning rather than a UserWarning. Code that filters or catches UserWarning for this access should be updated to match DeprecationWarning. github.com
markupsafe 3.0.0 breaking changes
- Removed
Python 3.7 and 3.8 are no longer supported. Upgrade the Python runtime to use this release. github.com - Removed
markupsafe.HasHTML
markupsafe.HasHTML was removed in MarkupSafe 3.0.0 pypi.org - Behavior changed
Markup.lstrip
lstrip no longer escapes its argument. Code relying on escaping through this method must escape the argument explicitly. github.com - Behavior changed
Markup.partition
partition no longer escapes its argument. Code relying on escaping through this method must escape the argument explicitly. github.com - Behavior changed
Markup.removeprefix
removeprefix no longer escapes its argument. Code relying on escaping through this method must escape the argument explicitly. github.com - Behavior changed
Markup.removesuffix
removesuffix no longer escapes its argument. Code relying on escaping through this method must escape the argument explicitly. github.com - Behavior changed
Markup.replace
replace now escapes only its new argument, not the old one. Code relying on the old argument being escaped must escape it explicitly. github.com - Behavior changed
Markup.rpartition
rpartition no longer escapes its argument. Code relying on escaping through this method must escape the argument explicitly. github.com - Behavior changed
Markup.rstrip
rstrip no longer escapes its argument. Code relying on escaping through this method must escape the argument explicitly. github.com - Behavior changed
Markup.strip
strip no longer escapes its argument. Code relying on escaping through this method must escape the argument explicitly. github.com
And 43 more in this version. Sign up to see every change
markupsafe 2.0.0 breaking changes
- Removed
markupsafe.Markup.__getslice__
Markup.__getslice__ was removed in MarkupSafe 2.0.0 pypi.org - Removed
markupsafe.Markup.make_simple_escaping_wrapper
Markup.make_simple_escaping_wrapper was removed in MarkupSafe 2.0.0 pypi.org - Signature changed
markupsafe.Markup
Was class Markup(text_type); now class Markup(str). pypi.org - Signature changed
markupsafe.Markup.rsplit
Was def rsplit(self, *args, **kwargs); now def rsplit(self, sep: t.Optional[str] = None, maxsplit: int = -1) -> t.List[Markup]. pypi.org - Signature changed
markupsafe.Markup.split
Was def split(self, *args, **kwargs); now def split(self, sep: t.Optional[str] = None, maxsplit: int = -1) -> t.List[Markup]. pypi.org - Signature changed
markupsafe.Markup.splitlines
Was def splitlines(self, *args, **kwargs); now def splitlines(self, keepends: bool = False) -> t.List[Markup]. pypi.org
markupsafe 1.0 breaking changes
- Removed
markupsafe.tests
markupsafe.tests was removed in MarkupSafe 1.0 pypi.org
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.