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
On this page
Latest version 3.13.0, released October 23, 2026. Source repository
Its 3.13.0 release drops Python 3.10. Python end of life dates.
asgiref 3.13.0 breaking changes
- Removed
Python 3.10 is no longer supported; users on Python 3.10 must upgrade their Python version. github.com - Removed
asgiref.testing.async_timeout
asgiref.testing.async_timeout was removed in asgiref 3.13.0 pypi.org - Behavior changed
Local
Local can no longer be subclassed; code that subclasses it must be changed to use Local directly. github.com - 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 - Signature changed
asgiref.sync.ThreadSensitiveContext.__init__
Was def __init__(self); now def __init__(self, *, executor: Executor | None = None) -> None. pypi.org
asgiref 3.12.0 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 - Removed
asgiref.sync.AsyncToSync.main_event_loop
AsyncToSync.main_event_loop was removed in asgiref 3.12.0 pypi.org - 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 - 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 - 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 - 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
asgiref 3.11.1 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 - Signature changed
asgiref.wsgi.WsgiToAsgi.__init__
Was def __init__(self, wsgi_application); now def __init__(self, wsgi_application, duplicate_header_limit=100). pypi.org - Signature changed
asgiref.wsgi.WsgiToAsgiInstance.__init__
Was def __init__(self, wsgi_application); now def __init__(self, wsgi_application, duplicate_header_limit=100). pypi.org
asgiref 3.11.0 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 - 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 - 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
asgiref 3.9.0 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 - Signature changed
asgiref.current_thread_executor.CurrentThreadExecutor.__init__
Was def __init__(self) -> None; now def __init__(self, old_executor: CurrentThreadExecutor | None) -> None. pypi.org - 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 - 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
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.