Open
Description
The content
parameter in the call_http
function in DurableOrchestrationContext.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 as if content and not isinstance(content, str)
.
Expected behaviour: when passing json serializable content, the type checker should not complain