-
-
Notifications
You must be signed in to change notification settings - Fork 944
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
TestClient methods are typed to return _ResultBase, but actually return Result #2207
Milestone
Comments
That seems likely yes. PR to fix would be appreciated! |
davetapley
added a commit
to JEFuller/falcon
that referenced
this issue
Feb 1, 2024
Closing for reasons on: #2209 (comment) |
it seems doable, with a lot more effort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: