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

# expression breaking changes

expression 7.0.0 (December 3, 2026) is its newest release with breaking changes, 40 of them. The first: Removed expression.collections.asyncseq.pipe. Every breaking API change we have recorded in expression on PyPI: 545 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

Latest version `7.0.0`, released December 3, 2026. [Source repository](https://github.com/cognitedata/Expression)

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

- From [6.0.0](#v-6-0-0) to [7.0.0](#v-7-0-0): 40 breaking changes in 1 version.

## expression 7.0.0 breaking changes

expression 7.0.0, released December 3, 2026: 40 breaking changes.

- **Removed** `expression.collections.asyncseq.pipe`  

expression.collections.asyncseq.pipe was removed in Expression 7.0.0 [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Removed** `expression.core.option.model_dump`  

Use option.dict in place of option.model_dump, matching result.dict. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Removed** `expression.curry_flipped`  

curry_flipped is removed; call curry_flip instead. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Behavior changed** `AsyncSeq`  

map, filter, choose, collect, concat, take, skip, tail and scan now return an AsyncSeq directly, so construction-time await is removed; terminal operations remain awaitable. [github.com](https://github.com/dbrattli/Expression/commit/a5a183c504f12344c67b7dfc79ce834aa3767c08)
- **Behavior changed** `repeat`  

Previously repeat() without a count yielded nothing; it now repeats indefinitely, so code relying on the old result must be reviewed. [github.com](https://github.com/dbrattli/Expression/commit/4e5c43ed959f44efdff5824c58684fa069868e6d)
- **Signature changed** `expression.collections.asyncseq.append`  

Was def append(other: AsyncIterable\[TSource\]) -> Callable\[\[AsyncIterable\[TSource\]\], AsyncIterable\[TSource\]\]; now def append(other: Iterable\[TSource\] | AsyncIterable\[TSource\]) -> Callable\[\[Iterable\[TSource\] | AsyncIterable\[TSource\]\]... [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.collections.asyncseq.AsyncSeq.choose`  

Was async def choose(self, chooser: Callable\[\[TSource\], Option\[TResult\]\]) -> AsyncIterable\[TResult\]; now def choose(self, chooser: Callable\[\[TSource\], Option\[TResult\]\]) -> AsyncSeq\[TResult\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.collections.asyncseq.AsyncSeq.collect`  

Was async def collect(self, mapping: Callable\[\[TSource\], AsyncIterable\[TResult\]\]) -> AsyncIterable\[TResult\]; now def collect(self, mapping: Callable\[\[TSource\], Iterable\[TResult\] | AsyncIterable\[TResult\]\]) -> AsyncSeq\[TResult\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.collections.asyncseq.AsyncSeq.concat`  

Was async def concat(self: AsyncSeq\[AsyncIterable\[TSource\]\]) -> AsyncIterable\[TSource\]; now def concat(self: AsyncSeq\[AsyncIterable\[TResult\]\]) -> AsyncSeq\[TResult\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.collections.asyncseq.AsyncSeq.filter`  

Was async def filter(self, predicate: Callable\[\[TSource\], bool\]) -> AsyncIterable\[TSource\]; now def filter(self, predicate: Callable\[\[TSource\], bool\]) -> AsyncSeq\[TSource\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.collections.asyncseq.AsyncSeq.map`  

Was async def map(self, mapper: Callable\[\[TSource\], TResult\]) -> AsyncSeq\[TResult\]; now def map(self, mapper: Callable\[\[TSource\], TResult\]) -> AsyncSeq\[TResult\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.collections.asyncseq.AsyncSeq.scan`  

Was async def scan(self, scanner: Callable\[\[TState, TSource\], TState\], state: TState) -> AsyncIterable\[TState\]; now def scan(self, scanner: Callable\[\[TState, TSource\], TState\], state: TState) -> AsyncSeq\[TState\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.collections.asyncseq.AsyncSeq.skip`  

Was async def skip(self, count: int) -> AsyncIterable\[TSource\]; now def skip(self, count: int) -> AsyncSeq\[TSource\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.collections.asyncseq.AsyncSeq.tail`  

Was async def tail(self) -> AsyncIterable\[TSource\]; now def tail(self) -> AsyncSeq\[TSource\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.collections.asyncseq.AsyncSeq.take`  

Was async def take(self, count: int) -> AsyncIterable\[TSource\]; now def take(self, count: int) -> AsyncSeq\[TSource\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.collections.asyncseq.choose`  

Was def choose(chooser: Callable\[\[TSource\], Option\[TResult\]\]) -> Callable\[\[AsyncIterable\[TSource\]\], AsyncIterable\[TResult\]\]; now def choose(chooser: Callable\[\[TSource\], Option\[TResult\]\]) -> Callable\[\[Iterable\[TSource\] |... [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.collections.asyncseq.collect`  

Was def collect(mapping: Callable\[\[TSource\], AsyncIterable\[TResult\]\]) -> Callable\[\[AsyncIterable\[TSource\]\], AsyncIterable\[TResult\]\]; now def collect(mapping: Callable\[\[TSource\], Iterable\[TResult\] | AsyncIterable\[TResult\]\]) ->... [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.collections.asyncseq.filter`  

Was def filter(predicate: Callable\[\[TSource\], bool\]) -> Callable\[\[AsyncIterable\[TSource\]\], AsyncIterable\[TSource\]\]; now def filter(predicate: Callable\[\[TSource\], bool\]) -> Callable\[\[Iterable\[TSource\] | AsyncIterable\[TSource\]\]... [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.collections.asyncseq.map`  

Was def map(mapper: Callable\[\[TSource\], TResult\]) -> Callable\[\[AsyncIterable\[TSource\]\], AsyncIterable\[TResult\]\]; now def map(mapper: Callable\[\[TSource\], TResult\]) -> Callable\[\[Iterable\[TSource\] | AsyncIterable\[TSource\]\]... [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.collections.asyncseq.range`  

Was async def range(\*args: int, \*\*kw: int) -> AsyncIterable\[int\]; now def range(\*args: int, \*\*kw: int) -> AsyncIterable\[int\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.core.option.Nothing.to_list`  

Was def to_list(self) -> list\[\_TEmpty\]; now def to_list(self) -> list\[TEmpty\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.core.option.Nothing.to_seq`  

Was def to_seq(self) -> Seq\[\_TEmpty\]; now def to_seq(self) -> Seq\[TEmpty\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.core.option.or_else`  

Call option.or_else(if_none) and apply it to the option, instead of passing the option and if_none together. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.core.option.Some.__await__`  

Was def \_\_await\_\_(self) -> Generator\[\_TSourceOut, \_TSourceOut, \_TSourceOut\]; now def \_\_await\_\_(self) -> Generator\[\_TSourceOut, object, \_TSourceOut\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.core.option.Some.__iter__`  

Was def \_\_iter\_\_(self) -> Generator\[\_TSourceOut, \_TSourceOut, \_TSourceOut\]; now def \_\_iter\_\_(self) -> Generator\[\_TSourceOut, object, \_TSourceOut\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.core.option.Some.to_list`  

Was def to_list(self) -> list\[\_TSourceOut\]; now def to_list(self: Some\[TSource\]) -> list\[TSource\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.core.option.Some.to_seq`  

Was def to_seq(self) -> Seq\[\_TSourceOut\]; now def to_seq(self: Some\[TSource\]) -> Seq\[TSource\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.core.result.Ok.__await__`  

Was def \_\_await\_\_(self) -> Generator\[\_T, \_T, \_T\]; now def \_\_await\_\_(self) -> Generator\[\_T, object, \_T\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.core.result.Ok.__iter__`  

Was def \_\_iter\_\_(self) -> Generator\[\_T, \_T, \_T\]; now def \_\_iter\_\_(self) -> Generator\[\_T, object, \_T\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.core.typing.upcast`  

Was def upcast(type: type\[Base\], expr: object) -> Base; now def upcast(type: type\[Base\]) -> Callable\[\[Base\], Base\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.Nothing.to_list`  

Was def to_list(self) -> list\[\_TEmpty\]; now def to_list(self) -> list\[TEmpty\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.Nothing.to_seq`  

Was def to_seq(self) -> Seq\[\_TEmpty\]; now def to_seq(self) -> Seq\[TEmpty\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.Ok.__await__`  

Was def \_\_await\_\_(self) -> Generator\[\_T, \_T, \_T\]; now def \_\_await\_\_(self) -> Generator\[\_T, object, \_T\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.Ok.__iter__`  

Was def \_\_iter\_\_(self) -> Generator\[\_T, \_T, \_T\]; now def \_\_iter\_\_(self) -> Generator\[\_T, object, \_T\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.Some.__await__`  

Was def \_\_await\_\_(self) -> Generator\[\_TSourceOut, \_TSourceOut, \_TSourceOut\]; now def \_\_await\_\_(self) -> Generator\[\_TSourceOut, object, \_TSourceOut\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.Some.__iter__`  

Was def \_\_iter\_\_(self) -> Generator\[\_TSourceOut, \_TSourceOut, \_TSourceOut\]; now def \_\_iter\_\_(self) -> Generator\[\_TSourceOut, object, \_TSourceOut\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.Some.to_list`  

Was def to_list(self) -> list\[\_TSourceOut\]; now def to_list(self: Some\[TSource\]) -> list\[TSource\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.Some.to_seq`  

Was def to_seq(self) -> Seq\[\_TSourceOut\]; now def to_seq(self: Some\[TSource\]) -> Seq\[TSource\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `expression.upcast`  

Was def upcast(type: type\[Base\], expr: object) -> Base; now def upcast(type: type\[Base\]) -> Callable\[\[Base\], Base\]. [pypi.org](https://pypi.org/project/Expression/7.0.0/)
- **Signature changed** `upcast`  

Calls of the form upcast(Base, value) must change to upcast(Base)(value). [github.com](https://github.com/dbrattli/Expression/commit/fbef5c8392dee05fdd979ee185b34105e65266bd)

## expression 6.0.0 breaking changes

expression 6.0.0, released November 12, 2026: 505 breaking changes.

- **Removed**  

Generator computations are removed in favor of typed synchronous and asynchronous scopes. [github.com](https://github.com/dbrattli/Expression/commit/c3886828e398d08047ee1702324a0b730d6cd9b9)
- **Removed** `expression.collections.asyncseq.Option.Nothing`  

expression.collections.asyncseq.Option.Nothing was removed in Expression 6.0.0 [pypi.org](https://pypi.org/project/Expression/6.0.0/)
- **Removed** `expression.collections.asyncseq.Option.Some`  

expression.collections.asyncseq.Option.Some was removed in Expression 6.0.0 [pypi.org](https://pypi.org/project/Expression/6.0.0/)
- **Removed** `expression.collections.asyncseq.TResult`  

expression.collections.asyncseq.TResult was removed in Expression 6.0.0 [pypi.org](https://pypi.org/project/Expression/6.0.0/)
- **Removed** `expression.collections.asyncseq.TSource`  

expression.collections.asyncseq.TSource was removed in Expression 6.0.0 [pypi.org](https://pypi.org/project/Expression/6.0.0/)
- **Removed** `expression.collections.asyncseq.TSourceSortable`  

expression.collections.asyncseq.TSourceSortable was removed in Expression 6.0.0 [pypi.org](https://pypi.org/project/Expression/6.0.0/)
- **Removed** `expression.collections.asyncseq.TSourceSum`  

expression.collections.asyncseq.TSourceSum was removed in Expression 6.0.0 [pypi.org](https://pypi.org/project/Expression/6.0.0/)
- **Removed** `expression.collections.asyncseq.TState`  

expression.collections.asyncseq.TState was removed in Expression 6.0.0 [pypi.org](https://pypi.org/project/Expression/6.0.0/)
- **Removed** `expression.collections.maptree.Key`  

expression.collections.maptree.Key was removed in Expression 6.0.0 [pypi.org](https://pypi.org/project/Expression/6.0.0/)
- **Removed** `expression.collections.maptree.Nothing`  

expression.collections.maptree.Nothing was removed in Expression 6.0.0 [pypi.org](https://pypi.org/project/Expression/6.0.0/)

And 495 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.
