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
All these methods are typed to return _ResultBase:
_ResultBase
falcon/falcon/testing/client.py
Lines 1041 to 1046 in 4910dd7
But actually returns Result here:
Result
Line 638 in 4910dd7
And Result defines the methods which are useful in testing:
Lines 328 to 348 in 4910dd7
But because it's typed _ResultBase I get e.g. Cannot access member "json" for type "_ResultBase", even though the methods work 😬
Cannot access member "json" for type "_ResultBase"
I presume this is an oversight and not intentional?
The text was updated successfully, but these errors were encountered:
That seems likely yes. PR to fix would be appreciated!
Sorry, something went wrong.
TestClient methods return Result, not _ResultBase
9c86b93
Fixes falconry#2207
Closing for reasons on: #2209 (comment)
it seems doable, with a lot more effort
@CaselIT I agree! See #2210 😁
Successfully merging a pull request may close this issue.
All these methods are typed to return
_ResultBase
:falcon/falcon/testing/client.py
Lines 1041 to 1046 in 4910dd7
But actually returns
Result
here:falcon/falcon/testing/client.py
Line 638 in 4910dd7
And
Result
defines the methods which are useful in testing:falcon/falcon/testing/client.py
Lines 328 to 348 in 4910dd7
But because it's typed
_ResultBase
I get e.g.Cannot access member "json" for type "_ResultBase"
,even though the methods work 😬
I presume this is an oversight and not intentional?
The text was updated successfully, but these errors were encountered: