---
title: "markupsafe 3.0.3 Breaking Changes on PyPI | Since.dev"
description: "What each markupsafe release removed, renamed or changed: 61 breaking changes in 4 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/markupsafe
last_updated: 2026-12-04
---

# 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

Latest version `3.0.4`, released October 2, 2026. 

Its 3.0.0 release drops Python 3.7 and [3.8](https://since.dev/calendar/python/3.8.md). [Python end of life dates](https://since.dev/calendar/python.md).

- From [2.0.0](#v-2-0-0) to [3.0.3](#v-3-0-3): 54 breaking changes in 2 versions.
- From [1.0](#v-1-0) to [3.0.3](#v-3-0-3): 60 breaking changes in 3 versions.

## markupsafe 3.0.3 breaking changes

markupsafe 3.0.3, released September 27, 2025: 1 breaking change.

- **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](https://github.com/pallets/markupsafe/releases/tag/3.0.3)

## markupsafe 3.0.0 breaking changes

markupsafe 3.0.0, released October 7, 2024: 53 breaking changes.

- **Removed**  

Python 3.7 and 3.8 are no longer supported. Upgrade the Python runtime to use this release. [github.com](https://github.com/pallets/markupsafe/releases/tag/3.0.0)
- **Removed** `markupsafe.HasHTML`  

markupsafe.HasHTML was removed in MarkupSafe 3.0.0 [pypi.org](https://pypi.org/project/MarkupSafe/3.0.0/)
- **Behavior changed** `Markup.lstrip`  

lstrip no longer escapes its argument. Code relying on escaping through this method must escape the argument explicitly. [github.com](https://github.com/pallets/markupsafe/releases/tag/3.0.0)
- **Behavior changed** `Markup.partition`  

partition no longer escapes its argument. Code relying on escaping through this method must escape the argument explicitly. [github.com](https://github.com/pallets/markupsafe/releases/tag/3.0.0)
- **Behavior changed** `Markup.removeprefix`  

removeprefix no longer escapes its argument. Code relying on escaping through this method must escape the argument explicitly. [github.com](https://github.com/pallets/markupsafe/releases/tag/3.0.0)
- **Behavior changed** `Markup.removesuffix`  

removesuffix no longer escapes its argument. Code relying on escaping through this method must escape the argument explicitly. [github.com](https://github.com/pallets/markupsafe/releases/tag/3.0.0)
- **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](https://github.com/pallets/markupsafe/releases/tag/3.0.0)
- **Behavior changed** `Markup.rpartition`  

rpartition no longer escapes its argument. Code relying on escaping through this method must escape the argument explicitly. [github.com](https://github.com/pallets/markupsafe/releases/tag/3.0.0)
- **Behavior changed** `Markup.rstrip`  

rstrip no longer escapes its argument. Code relying on escaping through this method must escape the argument explicitly. [github.com](https://github.com/pallets/markupsafe/releases/tag/3.0.0)
- **Behavior changed** `Markup.strip`  

strip no longer escapes its argument. Code relying on escaping through this method must escape the argument explicitly. [github.com](https://github.com/pallets/markupsafe/releases/tag/3.0.0)

And 43 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## markupsafe 2.0.0 breaking changes

markupsafe 2.0.0, released May 11, 2021: 6 breaking changes.

- **Removed** `markupsafe.Markup.__getslice__`  

Markup.\_\_getslice\_\_ was removed in MarkupSafe 2.0.0 [pypi.org](https://pypi.org/project/MarkupSafe/2.0.0/)
- **Removed** `markupsafe.Markup.make_simple_escaping_wrapper`  

Markup.make_simple_escaping_wrapper was removed in MarkupSafe 2.0.0 [pypi.org](https://pypi.org/project/MarkupSafe/2.0.0/)
- **Signature changed** `markupsafe.Markup`  

Was class Markup(text_type); now class Markup(str). [pypi.org](https://pypi.org/project/MarkupSafe/2.0.0/)
- **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](https://pypi.org/project/MarkupSafe/2.0.0/)
- **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](https://pypi.org/project/MarkupSafe/2.0.0/)
- **Signature changed** `markupsafe.Markup.splitlines`  

Was def splitlines(self, \*args, \*\*kwargs); now def splitlines(self, keepends: bool = False) -> t.List\[Markup\]. [pypi.org](https://pypi.org/project/MarkupSafe/2.0.0/)

## markupsafe 1.0 breaking changes

markupsafe 1.0, released March 7, 2017: 1 breaking change.

- **Removed** `markupsafe.tests`  

markupsafe.tests was removed in MarkupSafe 1.0 [pypi.org](https://pypi.org/project/MarkupSafe/1.0/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
