Problem:
Due to the untyped decorator handle_async_exceptions the function make_request on AsyncHTTPProvider is untyped as well. This causes issues with LSP code completion and with mypy in general (because mypy thinks make_request returns Any).
Steps to reproduce:
Create a project using strict mode in mypy
Call make_request on AsyncHTTPProvider
Call reveal_type on the returned type
Expected Behavior:
Instead of Anyreveal_type should show the T that is passed to make_request.
This should be easy to fix, adding type hints on handle_async_exceptions would solve the issue here, I won't mind creating a PR for that.
Problem: Due to the untyped decorator
handle_async_exceptions
the functionmake_request
onAsyncHTTPProvider
is untyped as well. This causes issues with LSP code completion and withmypy
in general (becausemypy
thinksmake_request
returnsAny
).Steps to reproduce:
mypy
make_request
onAsyncHTTPProvider
reveal_type
on the returned typeExpected Behavior: Instead of
Any
reveal_type
should show theT
that is passed tomake_request
.This should be easy to fix, adding type hints on
handle_async_exceptions
would solve the issue here, I won't mind creating a PR for that.