Skip to content

Incorrect type hint for content parameter of call_http in DurableOrchestrationContext.py #518

Open
@louic-vermeer-pggm

Description

@louic-vermeer-pggm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions