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
On this page
Latest version 3.0.2, released July 12, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
asttokens 3.0.0 breaking changes
- Removed
asttokens.mark_tokens.AstConstant
asttokens.mark_tokens.AstConstant was removed in asttokens 3.0.0 pypi.org - Removed
asttokens.mark_tokens.MarkTokens.visit_dictcomp
MarkTokens.visit_dictcomp was removed in asttokens 3.0.0 pypi.org - Removed
asttokens.mark_tokens.MarkTokens.visit_listcomp
MarkTokens.visit_listcomp was removed in asttokens 3.0.0 pypi.org - Removed
asttokens.mark_tokens.MarkTokens.visit_setcomp
MarkTokens.visit_setcomp was removed in asttokens 3.0.0 pypi.org - Removed
asttokens.mark_tokens.MarkTokens.visit_with
MarkTokens.visit_with was removed in asttokens 3.0.0 pypi.org - Removed
asttokens.util.AstConstant
asttokens.util.AstConstant was removed in asttokens 3.0.0 pypi.org - Signature changed
asttokens.ASTText
Was class ASTText(ASTTextBase, object); now class ASTText(ASTTextBase). pypi.org - Signature changed
asttokens.ASTTokens
Was class ASTTokens(ASTTextBase, object); now class ASTTokens(ASTTextBase). pypi.org - Signature changed
asttokens.asttokens.annotate_fstring_nodes
Was def annotate_fstring_nodes(_tree); now def annotate_fstring_nodes(tree). pypi.org - Signature changed
asttokens.asttokens.ASTText
Was class ASTText(ASTTextBase, object); now class ASTText(ASTTextBase). pypi.org - Signature changed
asttokens.asttokens.ASTTextBase
Was class ASTTextBase(six.with_metaclass(abc.ABCMeta, object)); now class ASTTextBase. pypi.org - Signature changed
asttokens.asttokens.ASTTokens
Was class ASTTokens(ASTTextBase, object); now class ASTTokens(ASTTextBase). pypi.org - Signature changed
asttokens.util.annotate_fstring_nodes
Was def annotate_fstring_nodes(_tree); now def annotate_fstring_nodes(tree). 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.