Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mypy unittest fails #44

Open
aaronkaplan opened this issue Feb 29, 2024 · 0 comments
Open

mypy unittest fails #44

aaronkaplan opened this issue Feb 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aaronkaplan
Copy link
Member

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.
@sebix sebix added the bug Something isn't working label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants