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

# absl-py breaking changes

absl-py 2.5.0 (July 3, 2026) is its newest release with breaking changes, 35 of them. The first: Signature changed absl.logging.ABSLHandler.close. Every breaking API change we have recorded in absl-py on PyPI: 55 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.5.1`, released October 9, 2026. [Source repository](https://github.com/abseil/abseil-py)

Its 2.0.0 release drops Python 3.6. [Python end of life dates](https://since.dev/calendar/python.md).

- From [1.0.0](#v-1-0-0) to [2.5.0](#v-2-5-0): 44 breaking changes in 2 versions.

## absl-py 2.5.0 breaking changes

absl-py 2.5.0, released July 3, 2026: 35 breaking changes.

- **Signature changed** `absl.logging.ABSLHandler.close`  

Was def close(self) -> None; now def close(self). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.ABSLHandler.emit`  

Was def emit(self, record: logging.LogRecord) -> None; now def emit(self, record). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.ABSLHandler.flush`  

Was def flush(self) -> None; now def flush(self). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.ABSLHandler.format`  

Was def format(self, record: logging.LogRecord) -> str; now def format(self, record). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.ABSLHandler.handle`  

Was def handle(self, record: logging.LogRecord) -> bool; now def handle(self, record). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.ABSLHandler.python_handler`  

Was python_handler: PythonHandler; now python_handler: PythonHandler\[Any\]. [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.ABSLHandler.setFormatter`  

Was def setFormatter(self, fmt) -> None; now def setFormatter(self, fmt). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.ABSLLogger.critical`  

Was def critical(self, msg: Any, \*args: Any, \*\*kwargs: Any) -> None; now def critical(self, msg, \*args, \*\*kwargs). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.ABSLLogger.debug`  

Was def debug(self, msg: Any, \*args: Any, \*\*kwargs: Any) -> None; now def debug(self, msg, \*args, \*\*kwargs). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.ABSLLogger.error`  

Was def error(self, msg: Any, \*args: Any, \*\*kwargs: Any) -> None; now def error(self, msg, \*args, \*\*kwargs). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.ABSLLogger.fatal`  

Was def fatal(self, msg: Any, \*args: Any, \*\*kwargs: Any) -> NoReturn; now def fatal(self, msg: object, \*args: object, \*\*kwargs) -> NoReturn. [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.ABSLLogger.findCaller`  

Was def findCaller(self, stack_info: bool = False, stacklevel: int = 1) -> tuple\[str, int, str, str | None\]; now def findCaller(self, stack_info=False, stacklevel=1). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.ABSLLogger.handle`  

Was def handle(self, record: logging.LogRecord) -> None; now def handle(self, record). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.ABSLLogger.info`  

Was def info(self, msg: Any, \*args: Any, \*\*kwargs: Any) -> None; now def info(self, msg, \*args, \*\*kwargs). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.ABSLLogger.log`  

Was def log(self, level: int, msg: Any, \*args: Any, \*\*kwargs: Any) -> None; now def log(self, level, msg, \*args, \*\*kwargs). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.ABSLLogger.warn`  

Was def warn(self, msg: Any, \*args: Any, \*\*kwargs: Any) -> None; now def warn(self, msg, \*args, \*\*kwargs). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.ABSLLogger.warning`  

Was def warning(self, msg: Any, \*args: Any, \*\*kwargs: Any) -> None; now def warning(self, msg, \*args, \*\*kwargs). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.debug`  

Was def debug(msg: Any, \*args: Any, \*\*kwargs: Any) -> None; now def debug(msg: object, \*args: object, \*\*kwargs) -> None. [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.error`  

Was def error(msg: Any, \*args: Any, \*\*kwargs: Any) -> None; now def error(msg: object, \*args: object, \*\*kwargs) -> None. [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.exception`  

Was def exception(msg: Any, \*args: Any, exc_info=True, \*\*kwargs: Any) -> None; now def exception(msg: object, \*args: object, exc_info: \_ExcInfo = True, \*\*kwargs) -> None. [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.fatal`  

Was def fatal(msg: Any, \*args: Any, \*\*kwargs: Any) -> NoReturn; now def fatal(msg: object, \*args: object, \*\*kwargs) -> NoReturn. [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.info`  

Was def info(msg: Any, \*args: Any, \*\*kwargs: Any) -> None; now def info(msg: object, \*args: object, \*\*kwargs) -> None. [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.log`  

Was def log(level: int, msg: Any, \*args: Any, \*\*kwargs: Any) -> None; now def log(level: int, msg: object, \*args: object, \*\*kwargs) -> None. [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.log_every_n`  

Was def log_every_n(level: int, msg: Any, n: int, \*args: Any, use_call_stack: bool = False, \*\*kwargs: Any) -> None; now def log_every_n(level: int, msg: object, n: int, \*args: object, use_call_stack: bool = False, \*\*kwargs) -> None. [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.log_every_n_seconds`  

Was def log_every_n_seconds(level: int, msg: Any, n_seconds: float, \*args: Any, use_call_stack: bool = False, \*\*kwargs: Any) -> None; now def log_every_n_seconds(level: int, msg: object, n_seconds: float, \*args: object, use_call_stack... [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.log_first_n`  

Was def log_first_n(level: int, msg: Any, n: int, \*args: Any, use_call_stack: bool = False, \*\*kwargs: Any) -> None; now def log_first_n(level: int, msg: object, n: int, \*args: object, use_call_stack: bool = False, \*\*kwargs) -> None. [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.log_if`  

Was def log_if(level: int, msg: Any, condition: Any, \*args: Any, \*\*kwargs: Any) -> None; now def log_if(level: int, msg: object, condition: object, \*args: object, \*\*kwargs) -> None. [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.PythonFormatter.format`  

Was def format(self, record: logging.LogRecord) -> str; now def format(self, record). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.PythonHandler.close`  

Was def close(self) -> None; now def close(self). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.PythonHandler.emit`  

Was def emit(self, record: logging.LogRecord) -> None; now def emit(self, record). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.PythonHandler.flush`  

Was def flush(self) -> None; now def flush(self). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.vlog`  

Was def vlog(level: int, msg: Any, \*args: Any, \*\*kwargs: Any) -> None; now def vlog(level: int, msg: object, \*args: object, \*\*kwargs) -> None. [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.warn`  

Was def warn(msg: Any, \*args: Any, \*\*kwargs: Any) -> None; now def warn(msg: object, \*args: object, \*\*kwargs) -> None. [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.logging.warning`  

Was def warning(msg: Any, \*args: Any, \*\*kwargs: Any) -> None; now def warning(msg: object, \*args: object, \*\*kwargs) -> None. [pypi.org](https://pypi.org/project/absl-py/2.5.0/)
- **Signature changed** `absl.testing.parameterized.TestGeneratorMetaclass.__new__`  

Was def \_\_new\_\_(cls, class_name, bases, dct); now def \_\_new\_\_(mcs, class_name, bases, dct). [pypi.org](https://pypi.org/project/absl-py/2.5.0/)

## absl-py 2.0.0 breaking changes

absl-py 2.0.0, released September 19, 2023: 9 breaking changes.

- **Removed**  

absl-py no longer supports Python 3.6, which reached end-of-life; upgrade the Python runtime to keep using this release. [github.com](https://github.com/abseil/abseil-py/releases/tag/v2.0.0)
- **Behavior changed** `absltest.TestCase.assertSameStructure`  

assertSameStructure now compares structure leaves using the test case's equality functions registered with addTypeEqualityFunc. [github.com](https://github.com/abseil/abseil-py/releases/tag/v2.0.0)
- **Behavior changed** `absltest.TestCase.assertSequenceStartsWith`  

assertSequenceStartsWith now explicitly fails when passed a Mapping or Set object as the whole argument. [github.com](https://github.com/abseil/abseil-py/releases/tag/v2.0.0)
- **Behavior changed** `absltest.TestCase.enter_context`  

On Python 3.11+, enter_context calls are forwarded to unittest's enterContext or enterClassContext, and the private \_cls_exit_stack and \_exit_stack attributes are no longer defined. [github.com](https://github.com/abseil/abseil-py/releases/tag/v2.0.0)
- **Behavior changed** `DEFINE_enum`  

DEFINE_enum, DEFINE_multi_enum and EnumParser now raise errors when enum_values is a single string; pass a list instead. [github.com](https://github.com/abseil/abseil-py/releases/tag/v2.0.0)
- **Behavior changed** `DEFINE_multi_enum`  

DEFINE_multi_enum raises an error when enum_values is a single string; pass a list instead. [github.com](https://github.com/abseil/abseil-py/releases/tag/v2.0.0)
- **Behavior changed** `EnumParser`  

EnumParser now raises an error when enum_values is a single string, and stores enum_values as a list copy of the input. [github.com](https://github.com/abseil/abseil-py/releases/tag/v2.0.0)
- **Signature changed** `absl.logging.exception`  

Was def exception(msg, \*args, \*\*kwargs); now def exception(msg, \*args, exc_info=True, \*\*kwargs). [pypi.org](https://pypi.org/project/absl-py/2.0.0/)
- **Signature changed** `absl.testing.absltest.TestCase.fail`  

The second argument of TestCase.fail is renamed from prefix to user_msg; callers passing prefix by keyword must update. [pypi.org](https://pypi.org/project/absl-py/2.0.0/)

## absl-py 1.0.0 breaking changes

absl-py 1.0.0, released November 10, 2021: 11 breaking changes.

- **Removed**  

absl-py no longer supports Python 2.7, 3.4 and 3.5. Users on those interpreters must stay on an older absl-py release or upgrade Python. [github.com](https://github.com/abseil/abseil-py/releases/tag/v1.0.0)
- **Removed** `absl.testing.absltest.enum`  

absl.testing.absltest.enum was removed in absl-py 1.0.0 [pypi.org](https://pypi.org/project/absl-py/1.0.0/)
- **Removed** `absl.testing.absltest.TestCase.assertNotRegex`  

TestCase.assertNotRegex was removed in absl-py 1.0.0 [pypi.org](https://pypi.org/project/absl-py/1.0.0/)
- **Removed** `absl.testing.absltest.TestCase.assertRaisesRegex`  

TestCase.assertRaisesRegex was removed in absl-py 1.0.0 [pypi.org](https://pypi.org/project/absl-py/1.0.0/)
- **Removed** `absl.testing.absltest.TestCase.assertRegex`  

TestCase.assertRegex was removed in absl-py 1.0.0 [pypi.org](https://pypi.org/project/absl-py/1.0.0/)
- **Removed** `absl.testing.absltest.TestCase.run`  

TestCase.run was removed in absl-py 1.0.0 [pypi.org](https://pypi.org/project/absl-py/1.0.0/)
- **Removed** `absl.testing.absltest.TestCase.subTest`  

TestCase.subTest was removed in absl-py 1.0.0 [pypi.org](https://pypi.org/project/absl-py/1.0.0/)
- **Removed** `absl.testing.absltest.unittest3_backport`  

absl.testing.absltest.unittest3_backport was removed in absl-py 1.0.0 [pypi.org](https://pypi.org/project/absl-py/1.0.0/)
- **Removed** `absl.testing.xml_reporter.unittest3_backport`  

absl.testing.xml_reporter.unittest3_backport was removed in absl-py 1.0.0 [pypi.org](https://pypi.org/project/absl-py/1.0.0/)
- **Removed** `absl.third_party`  

absl.third_party was removed in absl-py 1.0.0 [pypi.org](https://pypi.org/project/absl-py/1.0.0/)

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

## 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.
