chore(deps): bump asgiref from 3.5.0 to 3.6.0
Bumps asgiref from 3.5.0 to 3.6.0.
Changelog
Sourced from asgiref's changelog.
3.6.0 (2022-12-20)
Two new functions are added to the
asgiref.syncmodule:iscoroutinefunction()andmarkcoroutinefunction().Python 3.12 deprecates
asyncio.iscoroutinefunction()as an alias forinspect.iscoroutinefunction(), whilst also removing the_is_coroutinemarker. The latter is replaced with theinspect.markcoroutinefunctiondecorator.The new
asgiref.syncfunctions are compatibility shims for these functions that can be used until Python 3.12 is the minimum supported version.Note that these functions are considered beta, and as such, whilst not likely, are subject to change in a point release, until the final release of Python 3.12. They are included in
asgirefnow so that they can be adopted by Django 4.2, in preparation for support of Python 3.12.The
loopargument toasgiref.timeout.timeoutis deprecated. As per otherasynciobased APIs, the running event loop is used by default. Note thatasyncioprovides timeout utilities from Python 3.11, and these should be preferred where available.Support for the
ASGI_THREADSenvironment variable, used bySyncToAsync, is removed. In general, a running event-loop is not available toasgirefat import time, and so the default thread pool executor cannot be configured. Protocol servers, or applications, should set the default executor as required when configuring the event loop at application startup.3.5.2 (2022-05-16)
Allow async-callables class instances to be passed to AsyncToSync without warning
Prevent giving async-callable class instances to SyncToAsync
3.5.1 (2022-04-30)
- sync_to_async in thread-sensitive mode now works corectly when the outermost thread is synchronous (#214)
Commits
79a1d01Releasing 3.6.0.7a6c631Added release note for coroutine detection shims.bea951eAdded Python 3.11 supportea79016Updated timeout helper to use get_running_loop(). (#337)36f37c9Added coroutine detection shims for Python 3.12 (#360)467c154Updated pre-commit versions and fixed linting errors.72c5ca1Updated flake8 repo location in pre-commit config to github.8b76e05Tweak conf.py to fix Sphinx warnings (#355)9acb1a2Added missingHTTPResponseTrailersEventtoASGISendEvent3b5aaffAdded HTTP Trailers extension- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)