---
title: "asttokens 3.0.0 Breaking Changes on PyPI | Since.dev"
description: "What each asttokens release removed, renamed or changed: 13 breaking changes in 1 version on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/asttokens
last_updated: 2026-12-04
---

# asttokens breaking changes

asttokens 3.0.0 (November 30, 2024) is its newest release with breaking changes, 13 of them. The first: Removed asttokens.mark_tokens.AstConstant. Every breaking API change we have recorded in asttokens on PyPI: 13 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.0.2`, released July 12, 2026. [Source repository](https://github.com/gristlabs/asttokens)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

## asttokens 3.0.0 breaking changes

asttokens 3.0.0, released November 30, 2024: 13 breaking changes.

- **Removed** `asttokens.mark_tokens.AstConstant`  

asttokens.mark_tokens.AstConstant was removed in asttokens 3.0.0 [pypi.org](https://pypi.org/project/asttokens/3.0.0/)
- **Removed** `asttokens.mark_tokens.MarkTokens.visit_dictcomp`  

MarkTokens.visit_dictcomp was removed in asttokens 3.0.0 [pypi.org](https://pypi.org/project/asttokens/3.0.0/)
- **Removed** `asttokens.mark_tokens.MarkTokens.visit_listcomp`  

MarkTokens.visit_listcomp was removed in asttokens 3.0.0 [pypi.org](https://pypi.org/project/asttokens/3.0.0/)
- **Removed** `asttokens.mark_tokens.MarkTokens.visit_setcomp`  

MarkTokens.visit_setcomp was removed in asttokens 3.0.0 [pypi.org](https://pypi.org/project/asttokens/3.0.0/)
- **Removed** `asttokens.mark_tokens.MarkTokens.visit_with`  

MarkTokens.visit_with was removed in asttokens 3.0.0 [pypi.org](https://pypi.org/project/asttokens/3.0.0/)
- **Removed** `asttokens.util.AstConstant`  

asttokens.util.AstConstant was removed in asttokens 3.0.0 [pypi.org](https://pypi.org/project/asttokens/3.0.0/)
- **Signature changed** `asttokens.ASTText`  

Was class ASTText(ASTTextBase, object); now class ASTText(ASTTextBase). [pypi.org](https://pypi.org/project/asttokens/3.0.0/)
- **Signature changed** `asttokens.ASTTokens`  

Was class ASTTokens(ASTTextBase, object); now class ASTTokens(ASTTextBase). [pypi.org](https://pypi.org/project/asttokens/3.0.0/)
- **Signature changed** `asttokens.asttokens.annotate_fstring_nodes`  

Was def annotate_fstring_nodes(\_tree); now def annotate_fstring_nodes(tree). [pypi.org](https://pypi.org/project/asttokens/3.0.0/)
- **Signature changed** `asttokens.asttokens.ASTText`  

Was class ASTText(ASTTextBase, object); now class ASTText(ASTTextBase). [pypi.org](https://pypi.org/project/asttokens/3.0.0/)
- **Signature changed** `asttokens.asttokens.ASTTextBase`  

Was class ASTTextBase(six.with_metaclass(abc.ABCMeta, object)); now class ASTTextBase. [pypi.org](https://pypi.org/project/asttokens/3.0.0/)
- **Signature changed** `asttokens.asttokens.ASTTokens`  

Was class ASTTokens(ASTTextBase, object); now class ASTTokens(ASTTextBase). [pypi.org](https://pypi.org/project/asttokens/3.0.0/)
- **Signature changed** `asttokens.util.annotate_fstring_nodes`  

Was def annotate_fstring_nodes(\_tree); now def annotate_fstring_nodes(tree). [pypi.org](https://pypi.org/project/asttokens/3.0.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.
