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

# asgiref breaking changes

asgiref 3.13.0 (October 23, 2026) is its newest release with breaking changes, 5 of them. The first: asgiref 3.13.0 drops support for Python 3.10. Every breaking API change we have recorded in asgiref on PyPI: 21 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.13.0`, released October 23, 2026. [Source repository](https://github.com/django/asgiref)

Its 3.13.0 release drops [Python 3.10](https://since.dev/calendar/python/3.10.md). [Python end of life dates](https://since.dev/calendar/python.md).

- From [3.9.0](#v-3-9-0) to [3.13.0](#v-3-13-0): 17 breaking changes in 4 versions.

## asgiref 3.13.0 breaking changes

asgiref 3.13.0, released October 23, 2026: 5 breaking changes.

- **Removed**  

Python 3.10 is no longer supported; users on Python 3.10 must upgrade their Python version. [github.com](https://github.com/django/asgiref/blob/3.13.0/CHANGELOG.txt)
- **Removed** `asgiref.testing.async_timeout`  

asgiref.testing.async_timeout was removed in asgiref 3.13.0 [pypi.org](https://pypi.org/project/asgiref/3.13.0/)
- **Behavior changed** `Local`  

Local can no longer be subclassed; code that subclasses it must be changed to use Local directly. [github.com](https://github.com/django/asgiref/blob/3.13.0/CHANGELOG.txt)
- **Signature changed** `asgiref.sync.SyncToAsync.context_to_thread_executor`  

Was context_to_thread_executor: weakref.WeakKeyDictionary\[ThreadSensitiveContext, ThreadPoolExecutor\]; now context_to_thread_executor: weakref.WeakKeyDictionary\[ThreadSensitiveContext, Executor\]. [pypi.org](https://pypi.org/project/asgiref/3.13.0/)
- **Signature changed** `asgiref.sync.ThreadSensitiveContext.__init__`  

Was def \_\_init\_\_(self); now def \_\_init\_\_(self, \*, executor: Executor | None = None) -> None. [pypi.org](https://pypi.org/project/asgiref/3.13.0/)

## asgiref 3.12.0 breaking changes

asgiref 3.12.0, released July 14, 2026: 6 breaking changes.

- **Removed**  

Support for the end-of-life Python 3.9 was dropped. Users on Python 3.9 must upgrade their Python version to keep using this release. [github.com](https://github.com/django/asgiref/blob/3.12.0/CHANGELOG.txt)
- **Removed** `asgiref.sync.AsyncToSync.main_event_loop`  

AsyncToSync.main_event_loop was removed in asgiref 3.12.0 [pypi.org](https://pypi.org/project/asgiref/3.12.0/)
- **Behavior changed** `AsyncToSync`  

AsyncToSync no longer captures the running event loop on instantiation, so the loop is resolved at invocation time. Code that depends on the earlier capture may behave differently, and nested patterns can still deadlock, so await... [github.com](https://github.com/django/asgiref/blob/3.12.0/CHANGELOG.txt)
- **Behavior changed** `Local`  

Local storage is now tagged with its owning thread and only re-homed when asgiref moves work across threads. Code that relied on a new thread inheriting the spawning thread's Local context under thread_inherit_context will see different... [github.com](https://github.com/django/asgiref/blob/3.12.0/CHANGELOG.txt)
- **Configuration changed**  

The tests extra no longer installs mypy; a new mypy extra provides it for type-checking. Environments that depended on the tests extra for mypy must install the mypy extra instead. [github.com](https://github.com/django/asgiref/blob/3.12.0/CHANGELOG.txt)
- **Signature changed** `asgiref.sync.async_to_sync`  

Was def async_to_sync(awaitable: Optional\[Union\[Callable\[\_P, Coroutine\[Any, Any, \_R\]\], Callable\[\_P, Awaitable\[\_R\]\]\]\] = None, \*, force_new_loop: bool = False) -> Union\[Callable\[\[Union\[Callable\[\_P, Coroutine\[Any, Any, \_R\]\], Callable\[\_P... [pypi.org](https://pypi.org/project/asgiref/3.12.0/)

## asgiref 3.11.1 breaking changes

asgiref 3.11.1, released February 3, 2026: 3 breaking changes.

- **Behavior changed** `asgiref.wsgi.WsgiToAsgi`  

WsgiToAsgi gains a duplicate_header_limit parameter defaulting to 100, so requests repeating one header more than that are rejected as malformed. Pass duplicate_header_limit=None to disable the check or set a higher limit. [github.com](https://github.com/django/asgiref/blob/3.11.1/CHANGELOG.txt)
- **Signature changed** `asgiref.wsgi.WsgiToAsgi.__init__`  

Was def \_\_init\_\_(self, wsgi_application); now def \_\_init\_\_(self, wsgi_application, duplicate_header_limit=100). [pypi.org](https://pypi.org/project/asgiref/3.11.1/)
- **Signature changed** `asgiref.wsgi.WsgiToAsgiInstance.__init__`  

Was def \_\_init\_\_(self, wsgi_application); now def \_\_init\_\_(self, wsgi_application, duplicate_header_limit=100). [pypi.org](https://pypi.org/project/asgiref/3.11.1/)

## asgiref 3.11.0 breaking changes

asgiref 3.11.0, released November 19, 2025: 3 breaking changes.

- **Signature changed** `asgiref.sync.sync_to_async`  

Was def sync_to_async(func: Optional\[Callable\[\_P, \_R\]\] = None, \*, thread_sensitive: bool = True, executor: Optional\[ThreadPoolExecutor\] = None) -> Union\[Callable\[\[Callable\[\_P, \_R\]\], Callable\[\_P, Coroutine\[Any, Any, \_R\]\]\], Callable\[\_P... [pypi.org](https://pypi.org/project/asgiref/3.11.0/)
- **Signature changed** `asgiref.sync.SyncToAsync.__init__`  

Was def \_\_init\_\_(self, func: Callable\[\_P, \_R\], thread_sensitive: bool = True, executor: Optional\[ThreadPoolExecutor\] = None) -> None; now def \_\_init\_\_(self, func: Callable\[\_P, \_R\], thread_sensitive: bool = True, executor... [pypi.org](https://pypi.org/project/asgiref/3.11.0/)
- **Signature changed** `asgiref.wsgi.sync_to_async`  

Was def sync_to_async(func: Optional\[Callable\[\_P, \_R\]\] = None, \*, thread_sensitive: bool = True, executor: Optional\[ThreadPoolExecutor\] = None) -> Union\[Callable\[\[Callable\[\_P, \_R\]\], Callable\[\_P, Coroutine\[Any, Any, \_R\]\]\], Callable\[\_P... [pypi.org](https://pypi.org/project/asgiref/3.11.0/)

## asgiref 3.9.0 breaking changes

asgiref 3.9.0, released July 3, 2025: 4 breaking changes.

- **Removed**  

Python 3.8 is no longer supported; users on Python 3.8 must upgrade Python to keep using this release. [github.com](https://github.com/django/asgiref/blob/3.9.0/CHANGELOG.txt)
- **Signature changed** `asgiref.current_thread_executor.CurrentThreadExecutor.__init__`  

Was def \_\_init\_\_(self) -> None; now def \_\_init\_\_(self, old_executor: CurrentThreadExecutor | None) -> None. [pypi.org](https://pypi.org/project/asgiref/3.9.0/)
- **Signature changed** `asgiref.current_thread_executor.CurrentThreadExecutor.submit`  

Was def submit(self, fn, \*args, \*\*kwargs); now def submit(self, fn: Callable\[\_P, \_R\], /, \*args: \_P.args, \*\*kwargs: \_P.kwargs) -> Future\[\_R\]. [pypi.org](https://pypi.org/project/asgiref/3.9.0/)
- **Signature changed** `asgiref.sync.AsyncToSync.main_wrap`  

Was async def main_wrap(self, call_result: Future\[\_R\], exc_info: OptExcInfo, task_context: Optional\[List\[asyncio.Task\[Any\]\]\], context: List\[contextvars.Context\], \*args: \_P.args, \*\*kwargs: \_P.kwargs) -> None; now async def main_wrap(self... [pypi.org](https://pypi.org/project/asgiref/3.9.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.
