certtools / intelmq-api

FastAPI-based API for the IntelMQ project
https://docs.intelmq.org/latest/user/api/
1 stars 7 forks source link

mypy unittest fails #44

Open aaronkaplan opened 6 months ago

aaronkaplan commented 6 months ago
intelmq_api/exceptions.py:24: error: Argument 2 to "add_exception_handler" of "Starlette" has incompatible type "Callable[[Request, IntelMQCtlError], Any]"; expected "Union[Callable[[Request, Exception], Union[Response, Awaitable[Response]]], Callable[[WebSocket, Exception], Awaitable[None]]]"  [arg-type]
intelmq_api/exceptions.py:25: error: Argument 2 to "add_exception_handler" of "Starlette" has incompatible type "Callable[[Request, HTTPException], Any]"; expected "Union[Callable[[Request, Exception], Union[Response, Awaitable[Response]]], Callable[[WebSocket, Exception], Awaitable[None]]]"  [arg-type]
Found 2 errors in 1 file (checked 15 source files)
Error: Process completed with exit code 1.