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

# pyink breaking changes

pyink 26.5.1 (August 25, 2026) is its newest release with breaking changes, 42 of them. The first: Removed --pyink-ipynb-unicode-escape. Every breaking API change we have recorded in pyink on PyPI: 42 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 `26.5.1`, released August 25, 2026. [Source repository](https://github.com/google/pyink)

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

## pyink 26.5.1 breaking changes

pyink 26.5.1, released August 25, 2026: 42 breaking changes.

- **Removed** `--pyink-ipynb-unicode-escape`  

This option is no longer supported, so remove it from your commands and configuration. [github.com](https://github.com/google/pyink/releases/tag/26.5.1)
- **Removed** `pyink.comments.Preview`  

pyink.comments.Preview was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.concurrency.maybe_install_uvloop`  

pyink.concurrency.maybe_install_uvloop was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.ink_adjusted_lines`  

pyink.ink_adjusted_lines was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.ink_comments.Mode`  

pyink.ink_comments.Mode was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.ink.convert_unchanged_lines`  

pyink.ink.convert_unchanged_lines was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.ink.get_code_start`  

pyink.ink.get_code_start was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.ink.Leaf`  

pyink.ink.Leaf was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.ink.Line`  

pyink.ink.Line was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.ink.LN`  

pyink.ink.LN was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.ink.Node`  

pyink.ink.Node was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.ink.Quote`  

pyink.ink.Quote was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.ink.STANDALONE_COMMENT`  

pyink.ink.STANDALONE_COMMENT was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.ink.STRING_PREFIX_CHARS`  

pyink.ink.STRING_PREFIX_CHARS was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.ink.syms`  

pyink.ink.syms was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.ink.unicode_escape_json`  

pyink.ink.unicode_escape_json was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.ink.Visitor`  

pyink.ink.Visitor was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.mode.Deprecated`  

pyink.mode.Deprecated was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.Mode.pyink_ipynb_unicode_escape`  

Mode.pyink_ipynb_unicode_escape was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.nodes.is_function_or_class`  

pyink.nodes.is_function_or_class was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.parsing.lib2to3_unparse`  

pyink.parsing.lib2to3_unparse was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.parsing.matches_grammar`  

pyink.parsing.matches_grammar was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.Preview.always_one_newline_after_import`  

Preview.always_one_newline_after_import was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.Preview.fix_fmt_skip_in_one_liners`  

Preview.fix_fmt_skip_in_one_liners was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.Preview.fix_module_docstring_detection`  

Preview.fix_module_docstring_detection was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.Preview.fix_type_expansion_split`  

Preview.fix_type_expansion_split was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.Preview.multiline_string_handling`  

Preview.multiline_string_handling was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.Preview.normalize_cr_newlines`  

Preview.normalize_cr_newlines was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.Preview.remove_parens_around_except_types`  

Preview.remove_parens_around_except_types was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.Preview.remove_parens_from_assignment_lhs`  

Preview.remove_parens_from_assignment_lhs was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Removed** `pyink.Preview.standardize_type_comments`  

Preview.standardize_type_comments was removed in pyink 26.5.1 [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Behavior changed**  

Pyink no longer applies this formatting feature, so formatted output for except clauses may change. [github.com](https://github.com/google/pyink/releases/tag/26.5.1)
- **Signature changed** `pyink.decode_bytes`  

Was def decode_bytes(src: bytes, mode: Mode) -> tuple\[FileContent, Encoding, NewLine\]; now def decode_bytes(src: bytes, mode: Mode, \*, encoding_overwrite: str | None = None) -> tuple\[FileContent, Encoding, NewLine\]. [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Signature changed** `pyink.EmptyLineTracker.__init__`  

Was def \_\_init\_\_(self, mode: Mode, previous_line: Line | None = None, previous_block: LinesBlock | None = None, previous_defs: list\[Line\] = list(), semantic_leading_comment: LinesBlock | None = None) -> None; now def \_\_init\_\_(self, mode... [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Signature changed** `pyink.gen_python_files`  

Was def gen_python_files(paths: Iterable\[Path\], root: Path, include: Pattern\[str\], exclude: Pattern\[str\], extend_exclude: Pattern\[str\] | None, force_exclude: Pattern\[str\] | None, report: Report, gitignore_dict: dict\[Path, PathSpec\] | None... [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Signature changed** `pyink.get_gitignore`  

Was def get_gitignore(root: Path) -> PathSpec; now def get_gitignore(root: Path) -> GitIgnoreSpec. [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Signature changed** `pyink.handle_ipynb_magics.get_token`  

Was def get_token(src: str, magic: str) -> str; now def get_token(src: str, magic: str, existing_tokens: Collection\[str\] = ()) -> str. [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Signature changed** `pyink.ink_comments.comment_contains_pragma`  

Was def comment_contains_pragma(comment: str, mode: Optional\[Mode\]) -> bool; now def comment_contains_pragma(comment: str, mode: mode_mod.Mode) -> bool. [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Signature changed** `pyink.ink.majority_quote`  

Was def majority_quote(node: LN) -> Quote; now def majority_quote(node: nodes_mod.LN) -> mode.Quote. [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Signature changed** `pyink.main`  

Was def main(ctx: click.Context, code: str | None, line_length: int, target_version: list\[TargetVersion\], check: bool, diff: bool, line_ranges: Sequence\[str\], color: bool, fast: bool, pyi: bool, ipynb: bool, python_cell_magics... [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Signature changed** `pyink.Mode.__init__`  

Was def \_\_init\_\_(self, target_versions: set\[TargetVersion\] = set(), line_length: int = DEFAULT_LINE_LENGTH, string_normalization: bool = True, quote_style: QuoteStyle = QuoteStyle.DOUBLE, majority_quote: Quote = Quote.DOUBLE, is_pyi: bool... [pypi.org](https://pypi.org/project/pyink/26.5.1/)
- **Signature changed** `pyink.read_pyproject_toml`  

Was def read_pyproject_toml(ctx: click.Context, param: click.Parameter, value: str | None) -> str | None; now def read_pyproject_toml(ctx: click.Context, param: click.Parameter | None, value: str | None) -> str | None. [pypi.org](https://pypi.org/project/pyink/26.5.1/)

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