Warning: Bocadillo is now UNMAINTAINED. Users are recommended to migrate to a supported alternative, such as Starlette or FastAPI. Please see #344 for more information.

bocadillo.compat

ExpectedAsync

ExpectedAsync(self, /, *args, **kwargs)

Raised when a feature expected an asynchronous function.

empty_wsgi_app

empty_wsgi_app() -> Callable[[dict, Callable[[str, List[str]], NoneType]], List[bytes]]

Return a WSGI app that always returns 404 Not Found.