Incorrect type hint for content parameter of call_http in DurableOrchestrationContext.py #518
Labels
documentation
About documentation
good first issue
Good for new contributors
help wanted
Good for the community input
The
content
parameter in thecall_http
function inDurableOrchestrationContext.py
has type hint Optional[str] but actually accepts any json serializable content, see lines 238-242. The type hint should be corrected.In addition, the conditional
if content and content is not isinstance(content, str)
is hard to read and should probably be rewritten asif content and not isinstance(content, str)
.Expected behaviour: when passing json serializable content, the type checker should not complain
The text was updated successfully, but these errors were encountered: