We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I think the definition here:
responses/responses/__init__.py
Line 237 in f7a7945
could be:
class CallList(Sequence[Call], Sized):
I'm using the latest Pyright static type checker in strict mode and it gives me the error below:
error: Return type, "Generator[filter[Unknown], Any, None]", is partially unknown (reportUnknownParameterType)
for the code in Steps to Reproduce.
See the discussion here: microsoft/pyright#8164
responses
0.25.3
import pytest import responses @pytest.fixture def req_mock(): with responses.RequestsMock() as mock: yield mock @pytest.fixture def foo_request(req_mock: responses.RequestsMock): req_mock.add(responses.GET, url="https://foo.example.com/123") yield filter( lambda r: r.request.url.startswith("https://foo.example.com"), req_mock.calls )
Function foo_request returns Generator[filter[Call], Any, None].
foo_request
Generator[filter[Call], Any, None]
Function foo_request returns Generator[filter[Unknown], Any, None].
Generator[filter[Unknown], Any, None]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Hello,
I think the definition here:
responses/responses/__init__.py
Line 237 in f7a7945
could be:
I'm using the latest Pyright static type checker in strict mode and it gives me the error below:
for the code in Steps to Reproduce.
Additional context
See the discussion here: microsoft/pyright#8164
Version of
responses
0.25.3
Steps to Reproduce
Expected Result
Function
foo_request
returnsGenerator[filter[Call], Any, None]
.Actual Result
Function
foo_request
returnsGenerator[filter[Unknown], Any, None]
.The text was updated successfully, but these errors were encountered: