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

# fakeredis breaking changes

fakeredis 2.40.0 (October 14, 2026) is its newest release with breaking changes, 4 of them. The first: Signature changed fakeredis.FakeServer.remember_scan_cursor. Every breaking API change we have recorded in fakeredis on PyPI: 361 breaking changes in 10 versions. Below, its 10 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.41.0`, released November 23, 2026. [Source repository](https://github.com/cunla/fakeredis-py)

Its 2.37.1 release requires [Python 3.10](https://since.dev/calendar/python/3.10.md) or later. [Python end of life dates](https://since.dev/calendar/python.md).

- From [1.0](#v-1-0) to [2.40.0](#v-2-40-0): 210 breaking changes in 9 versions.

## fakeredis 2.40.0 breaking changes

fakeredis 2.40.0, released October 14, 2026: 4 breaking changes.

- **Signature changed** `fakeredis.FakeServer.remember_scan_cursor`  

Was def remember_scan_cursor(self, cursor_key: tuple\[Any, int\], last_seen: Any) -> None; now def remember_scan_cursor(self, cursor_key: tuple\[Any, int\], resume_at: tuple\[list\[Any\], int\]) -> None. [pypi.org](https://pypi.org/project/fakeredis/2.40.0/)
- **Signature changed** `fakeredis.FakeServer.scan_cursors`  

Was scan_cursors: OrderedDict\[tuple\[Any, int\], Any\]; now scan_cursors: OrderedDict\[tuple\[Any, int\], tuple\[list\[Any\], int\]\]. [pypi.org](https://pypi.org/project/fakeredis/2.40.0/)
- **Signature changed** `fakeredis.model.AccessControlList.validate_command`  

Was def validate_command(self, username: bytes, client_info: bytes, fields: list\[bytes\]) -> None; now def validate_command(self, username: bytes, client_info: ClientInfo, fields: list\[bytes\]) -> None. [pypi.org](https://pypi.org/project/fakeredis/2.40.0/)
- **Signature changed** `fakeredis.model.XStream.irange`  

Was def irange(self, start: StreamRangeTest, stop: StreamRangeTest, reverse: bool = False) -> list\[Any\]; now def irange(self, start: StreamRangeTest, stop: StreamRangeTest, reverse: bool = False, count: int | None = None) -> list\[Any\]. [pypi.org](https://pypi.org/project/fakeredis/2.40.0/)

## fakeredis 2.39.0 breaking changes

fakeredis 2.39.0, released October 1, 2026: 41 breaking changes.

- **Removed** `fakeredis.aioredis.async_timeout`  

fakeredis.aioredis.async_timeout was removed in fakeredis 2.39.0 [pypi.org](https://pypi.org/project/fakeredis/2.39.0/)
- **Removed** `fakeredis.aioredis.build_client_kwds`  

fakeredis.aioredis.build_client_kwds was removed in fakeredis 2.39.0 [pypi.org](https://pypi.org/project/fakeredis/2.39.0/)
- **Removed** `fakeredis.aioredis.FakeBaseConnectionMixin`  

fakeredis.aioredis.FakeBaseConnectionMixin was removed in fakeredis 2.39.0 [pypi.org](https://pypi.org/project/fakeredis/2.39.0/)
- **Removed** `fakeredis.aioredis.FakeServer`  

fakeredis.aioredis.FakeServer was removed in fakeredis 2.39.0 [pypi.org](https://pypi.org/project/fakeredis/2.39.0/)
- **Removed** `fakeredis.aioredis.lib_version`  

fakeredis.aioredis.lib_version was removed in fakeredis 2.39.0 [pypi.org](https://pypi.org/project/fakeredis/2.39.0/)
- **Removed** `fakeredis.aioredis.msgs`  

fakeredis.aioredis.msgs was removed in fakeredis 2.39.0 [pypi.org](https://pypi.org/project/fakeredis/2.39.0/)
- **Removed** `fakeredis.aioredis.RaiseErrorTypes`  

fakeredis.aioredis.RaiseErrorTypes was removed in fakeredis 2.39.0 [pypi.org](https://pypi.org/project/fakeredis/2.39.0/)
- **Removed** `fakeredis.aioredis.ServerType`  

fakeredis.aioredis.ServerType was removed in fakeredis 2.39.0 [pypi.org](https://pypi.org/project/fakeredis/2.39.0/)
- **Removed** `fakeredis.aioredis.SimpleError`  

fakeredis.aioredis.SimpleError was removed in fakeredis 2.39.0 [pypi.org](https://pypi.org/project/fakeredis/2.39.0/)
- **Removed** `fakeredis.aioredis.VersionType`  

fakeredis.aioredis.VersionType was removed in fakeredis 2.39.0 [pypi.org](https://pypi.org/project/fakeredis/2.39.0/)

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

## fakeredis 2.38.0 breaking changes

fakeredis 2.38.0, released September 8, 2026: 21 breaking changes.

- **Removed** `fakeredis.commands_mixins.streams_mixin.StreamEntryKey`  

fakeredis.commands_mixins.streams_mixin.StreamEntryKey was removed in fakeredis 2.38.0 [pypi.org](https://pypi.org/project/fakeredis/2.38.0/)
- **Removed** `LCS`  

When emulating Dragonfly, fakeredis no longer provides LCS at all, so code calling it there will fail. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.38.0)
- **Removed** `redis.setresp`  

When emulating Dragonfly, fakeredis no longer exposes redis.setresp, so scripts calling it there will fail. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.38.0)
- **Behavior changed**  

Scripts run with Lua 5.4 behaviour under Dragonfly emulation, including non-integral numbers returned as doubles and Redis 6-style error wrapping. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.38.0)
- **Behavior changed**  

JSON paths under Dragonfly emulation no longer accept filter expressions, and legacy paths are wrapped like JSONPath. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.38.0)
- **Behavior changed** `COPY`  

When emulating Dragonfly, COPY no longer accepts a DB option. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.38.0)
- **Behavior changed** `GEORADIUS`  

GEORADIUS replies are now in geohash order instead of insertion order when unsorted, so code relying on the old order may see different results. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.38.0)
- **Behavior changed** `redis.call`  

Inside Lua scripts, redis.call now returns RESP2 replies whatever protocol the client negotiated, matching real Redis. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.38.0)
- **Behavior changed** `SORT`  

When emulating Dragonfly, SORT no longer supports -> hash-field patterns and no longer applies Redis' weight tie-break. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.38.0)
- **Signature changed** `fakeredis.aioredis.AsyncFakeSocket.bitfield`  

Was def bitfield(self, key: CommandItem, \*args: bytes) -> list\[int | None\]; now def bitfield(self, key: CommandItem, \*args: bytes) -> list\[int | None\] | None. [pypi.org](https://pypi.org/project/fakeredis/2.38.0/)

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

## fakeredis 2.37.1 breaking changes

fakeredis 2.37.1, released August 18, 2026: 12 breaking changes.

- **Removed**  

Python 3.9 is no longer supported; use Python 3.10 or later. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.37.1)
- **Behavior changed** `LTRIM`  

LTRIM now signals the key as modified on a no-op trim, so a WATCH on that key aborts the following transaction. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.37.1)
- **Behavior changed** `VSIM`  

The FILTER-EF option is now applied, so filtered VSIM queries can return fewer matches than before. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.37.1)
- **Behavior changed** `XPENDING`  

XPENDING on a missing key or unknown group now raises NOGROUP instead of returning 0 or an empty array, and no longer creates the key. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.37.1)
- **Behavior changed** `ZPOPMAX`  

Without a count, ZPOPMAX in RESP3 now returns a flat \[member, score\] pair instead of an array of pairs; code expecting the old shape must change. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.37.1)
- **Behavior changed** `ZPOPMIN`  

Without a count, ZPOPMIN in RESP3 now returns a flat \[member, score\] pair instead of an array of pairs; code expecting the old shape must change. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.37.1)
- **Signature changed** `fakeredis.aioredis.AsyncFakeSocket.zpopmax`  

Was def zpopmax(self, key: CommandItem, count: int = 1) -> List\[List\[bytes\]\]; now def zpopmax(self, key: CommandItem, count: int | None = None) -> list\[Any\]. [pypi.org](https://pypi.org/project/fakeredis/2.37.1/)
- **Signature changed** `fakeredis.aioredis.AsyncFakeSocket.zpopmin`  

Was def zpopmin(self, key: CommandItem, count: int = 1) -> List\[List\[bytes\]\]; now def zpopmin(self, key: CommandItem, count: int | None = None) -> list\[Any\]. [pypi.org](https://pypi.org/project/fakeredis/2.37.1/)
- **Signature changed** `fakeredis.commands_mixins.generic_mixin.BeforeAny.__eq__`  

Was def \_\_eq\_\_(self, other: Any) -> bool; now def \_\_eq\_\_(self, other: object) -> bool. [pypi.org](https://pypi.org/project/fakeredis/2.37.1/)
- **Signature changed** `fakeredis.commands_mixins.sortedset_mixin.AfterAny.__eq__`  

Was def \_\_eq\_\_(self, other: Any) -> bool; now def \_\_eq\_\_(self, other: object) -> bool. [pypi.org](https://pypi.org/project/fakeredis/2.37.1/)

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

## fakeredis 2.37.0 breaking changes

fakeredis 2.37.0, released July 22, 2026: 6 breaking changes.

- **Removed** `fakeredis.commands_mixins.geo_mixin.UNIT_TO_M`  

fakeredis.commands_mixins.geo_mixin.UNIT_TO_M was removed in fakeredis 2.37.0 [pypi.org](https://pypi.org/project/fakeredis/2.37.0/)
- **Behavior changed** `GEOADD`  

GEOADD now raises an error for longitude/latitude pairs outside the valid range, which it previously accepted. Check coordinates before calling. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.37.0)
- **Behavior changed** `HEXPIRE`  

Calls passing a negative expiration time to HEXPIRE now raise an error. Pass a non-negative value. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.37.0)
- **Behavior changed** `HPEXPIRE`  

Calls passing a negative expiration time to HPEXPIRE now raise an error. Pass a non-negative value. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.37.0)
- **Behavior changed** `XNACK`  

XNACK now follows Redis 8.8 behavior, which may change results for existing code. Review XNACK calls against Redis 8.8. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.37.0)
- **Signature changed** `fakeredis.commands_mixins.list_mixin.Timeout.decode`  

Was @classmethod def decode(cls, value: bytes, allow_leading_whitespace: bool = False, allow_erange: bool = False, allow_empty: bool = False, crop_null: bool = False, decode_error: Optional\[str\] = None) -> float; now @classmethod def... [pypi.org](https://pypi.org/project/fakeredis/2.37.0/)

## fakeredis 2.36.2 breaking changes

fakeredis 2.36.2, released June 17, 2026: 9 breaking changes.

- **Removed** `fakeredis.aioredis.FakeRedisMixin.__init__`  

FakeRedisMixin() was removed in fakeredis 2.36.2 [pypi.org](https://pypi.org/project/fakeredis/2.36.2/)
- **Removed** `fakeredis.aioredis.FakeRedisMixin.from_url`  

FakeRedisMixin.from_url was removed in fakeredis 2.36.2 [pypi.org](https://pypi.org/project/fakeredis/2.36.2/)
- **Behavior changed** `SINTERCARD`  

SINTERCARD now rejects a negative LIMIT value, so code that passed a negative LIMIT will get an error and must pass a non-negative LIMIT. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.36.2)
- **Behavior changed** `ZINTERCARD`  

ZINTERCARD now rejects a negative LIMIT value, so code that passed a negative LIMIT will get an error and must pass a non-negative LIMIT. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.36.2)
- **Signature changed** `fakeredis.aioredis.FakeRedis`  

Was class FakeRedis(FakeRedisMixin, redis_async.Redis); now class FakeRedis(FakeAsyncRedisMixin, redis_async.Redis). [pypi.org](https://pypi.org/project/fakeredis/2.36.2/)
- **Signature changed** `fakeredis.aioredis.FakeRedis.from_url`  

Was @classmethod def from_url(cls, url: str, \*\*kwargs: Any) -> FakeRedisMixin; now @classmethod def from_url(cls, url: str, \*\*kwargs: Any) -> 'FakeAsyncRedisMixin'. [pypi.org](https://pypi.org/project/fakeredis/2.36.2/)
- **Signature changed** `fakeredis.aioredis.FakeRedisMixin`  

Was class FakeRedisMixin; now FakeRedisMixin. [pypi.org](https://pypi.org/project/fakeredis/2.36.2/)
- **Signature changed** `fakeredis.FakeAsyncRedis`  

Was class FakeRedis(FakeRedisMixin, redis_async.Redis); now class FakeRedis(FakeAsyncRedisMixin, redis_async.Redis). [pypi.org](https://pypi.org/project/fakeredis/2.36.2/)
- **Signature changed** `fakeredis.FakeRedisConnection.__init__`  

Was def \_\_init\_\_(\*args: Any, \*\*kwargs: Any) -> None; now def \_\_init\_\_(self, \*args: Any, version: VersionType = (7, 0), server_type: ServerType = 'redis', server: Optional\[FakeServer\] = None, client_class: Type\[redis.Redis\] = redis.Redis... [pypi.org](https://pypi.org/project/fakeredis/2.36.2/)

## Older versions

4 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### fakeredis 2.36.1 breaking changes

fakeredis 2.36.1, released June 7, 2026: 5 breaking changes.

- **Removed** `fakeredis.aioredis.convert_args_kwargs`  

fakeredis.aioredis.convert_args_kwargs was removed in fakeredis 2.36.1 [pypi.org](https://pypi.org/project/fakeredis/2.36.1/)
- **Behavior changed** `Database`  

Database now uses identity-based \_\_hash\_\_ and \_\_eq\_\_ instead of the previous unstable hash. Code that compares or hashes Database objects may see different results. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.36.1)

And 3 more in this version.

### fakeredis 2.36.0 breaking changes

fakeredis 2.36.0, released May 29, 2026: 99 breaking changes.

- **Removed** `fakeredis.aioredis.Self`  

fakeredis.aioredis.Self was removed in fakeredis 2.36.0 [pypi.org](https://pypi.org/project/fakeredis/2.36.0/)
- **Removed** `fakeredis.commands_mixins.acl_mixin.ClientInfo`  

fakeredis.commands_mixins.acl_mixin.ClientInfo was removed in fakeredis 2.36.0 [pypi.org](https://pypi.org/project/fakeredis/2.36.0/)

And 97 more in this version.

### fakeredis 2.0.0 breaking changes

fakeredis 2.0.0, released November 18, 2022: 13 breaking changes.

- **Removed**  

aioredis is no longer supported separately from redis-py; this applies to redis-py versions 4.1.2 and below. Use redis-py's built-in asyncio support instead. [github.com](https://github.com/cunla/fakeredis-py/releases/tag/v2.0.0)
- **Removed** `fakeredis.aioredis.create_connection`  

fakeredis.aioredis.create_connection was removed in fakeredis 2.0.0 [pypi.org](https://pypi.org/project/fakeredis/2.0.0/)

And 11 more in this version.

### fakeredis 1.0 breaking changes

fakeredis 1.0, released January 24, 2019: 151 breaking changes.

- **Removed** `fakeredis.basestring`  

fakeredis.basestring was removed in fakeredis 1.0 [pypi.org](https://pypi.org/project/fakeredis/1.0/)
- **Removed** `fakeredis.byte_to_int`  

fakeredis.byte_to_int was removed in fakeredis 1.0 [pypi.org](https://pypi.org/project/fakeredis/1.0/)

And 149 more in this version.

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