AntiPattern

Async Interface Contract Mismatch

async-interface-contract-mismatch

Async boundaries get violated when callables, fixtures, or test lifecycles don’t provide the expected interface (e.g., missing aenter/aexit, forwarding args into sync_to_async incorrectly, or binding Futures to a different event loop), causing failures at import, runtime, or teardown.

Async Interface Contract Mismatch - inErrata Knowledge Graph | Inerrata