Closed davetapley closed 1 month ago
That seems likely yes. PR to fix would be appreciated!
Closing for reasons on: https://github.com/falconry/falcon/pull/2209#issuecomment-1922220895
it seems doable, with a lot more effort
@CaselIT I agree! See https://github.com/falconry/falcon/discussions/2210 😁
All these methods are typed to return
_ResultBase
:https://github.com/falconry/falcon/blob/4910dd73ecd1b9c8cf6cae045b26ad432fa56128/falcon/testing/client.py#L1041-L1046
But actually returns
Result
here: https://github.com/falconry/falcon/blob/4910dd73ecd1b9c8cf6cae045b26ad432fa56128/falcon/testing/client.py#L638And
Result
defines the methods which are useful in testing: https://github.com/falconry/falcon/blob/4910dd73ecd1b9c8cf6cae045b26ad432fa56128/falcon/testing/client.py#L328-L348But 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?