[channels] Use async def instead of a decorator (#15590)

This commit is contained in:
Sebastian Rittau
2026-04-01 15:22:32 +02:00
committed by GitHub
parent 08628cee95
commit 1004155b8e
2 changed files with 5 additions and 3 deletions
@@ -7,6 +7,10 @@ channels.auth.UserLazyObject.MultipleObjectsReturned
channels.auth.UserLazyObject.NotUpdated
channels.auth.UserLazyObject@AnnotatedWith
# "is not a function", because it's wrapped in database_sync_to_async,
# which makes it a class instance.
channels.consumer.SyncConsumer.dispatch
# database_sync_to_async is implemented as a class instance but stubbed as a function
# for better type inference when used as decorator/function
channels.db.database_sync_to_async