termcolor breaking changes
termcolor 3.0.0 (March 31, 2025) is its newest release with breaking changes, 16 of them. The first: Removes literal type annotations in favor of strings in termcolor 3.0.0. Every breaking API change we have recorded in termcolor on PyPI: 20 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.3.0, released December 29, 2025.
Packages on PyPI run on Python. Python end of life dates.
termcolor 3.0.0 breaking changes
- Removed
Literal types were replaced with plain strings in type annotations. Code relying on the Literal types for type checking may see different results. github.com - Removed
termcolor.termcolor.__ALL__
The deprecated __ALL__ name is removed. Use __all__ instead. pypi.org - Removed
termcolor.termcolor.Attribute
termcolor.termcolor.Attribute was removed in termcolor 3.0.0 pypi.org - Removed
termcolor.termcolor.Color
termcolor.termcolor.Color was removed in termcolor 3.0.0 pypi.org - Removed
termcolor.termcolor.Highlight
termcolor.termcolor.Highlight was removed in termcolor 3.0.0 pypi.org - Configuration changed
FORCE_COLOR, NO_COLOR and ANSI_COLORS_DISABLED now only take effect when present and not empty. Check that any of these variables set to an empty string still produce the intended color behavior. github.com - Signature changed
termcolor.ATTRIBUTES
Was ATTRIBUTES: dict[Attribute, int]; now ATTRIBUTES: dict[str, int]. pypi.org - Signature changed
termcolor.colored
Was def colored(text: object, color: Color | None = None, on_color: Highlight | None = None, attrs: Iterable[Attribute] | None = None, *, no_color: bool | None = None, force_color: bool | None = None) -> str; now def colored(text: object... pypi.org - Signature changed
termcolor.COLORS
Was COLORS: dict[Color, int]; now COLORS: dict[str, int]. pypi.org - Signature changed
termcolor.cprint
Was def cprint(text: object, color: Color | None = None, on_color: Highlight | None = None, attrs: Iterable[Attribute] | None = None, *, no_color: bool | None = None, force_color: bool | None = None, **kwargs: Any) -> None; now def... pypi.org - Signature changed
termcolor.HIGHLIGHTS
Was HIGHLIGHTS: dict[Highlight, int]; now HIGHLIGHTS: dict[str, int]. pypi.org - Signature changed
termcolor.termcolor.ATTRIBUTES
Was ATTRIBUTES: dict[Attribute, int]; now ATTRIBUTES: dict[str, int]. pypi.org - Signature changed
termcolor.termcolor.colored
Was def colored(text: object, color: Color | None = None, on_color: Highlight | None = None, attrs: Iterable[Attribute] | None = None, *, no_color: bool | None = None, force_color: bool | None = None) -> str; now def colored(text: object... pypi.org - Signature changed
termcolor.termcolor.COLORS
Was COLORS: dict[Color, int]; now COLORS: dict[str, int]. pypi.org - Signature changed
termcolor.termcolor.cprint
Was def cprint(text: object, color: Color | None = None, on_color: Highlight | None = None, attrs: Iterable[Attribute] | None = None, *, no_color: bool | None = None, force_color: bool | None = None, **kwargs: Any) -> None; now def... pypi.org - Signature changed
termcolor.termcolor.HIGHLIGHTS
Was HIGHLIGHTS: dict[Highlight, int]; now HIGHLIGHTS: dict[str, int]. pypi.org
termcolor 2.0.0 breaking changes
- Removed
Python 3.6 and older are no longer supported. Stay on termcolor 1.x if you still run those Python versions. github.com - Removed
termcolor.__ALL__
termcolor.__ALL__ was removed in termcolor 2.0.0 pypi.org - Removed
termcolor.VERSION
The VERSION constant is gone. Read the installed version with importlib.metadata instead. pypi.org - Configuration changed
When NO_COLOR is set, colored output is disabled, so code relying on color output may see plain text. github.com
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.