Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@N-give
Copy link
Contributor

@N-give N-give commented Mar 27, 2025

No description provided.

Comment on lines 197 to 207
workflow_start_response = unset_to_none(
handler_error_and_return(
post_api_v1_workflow_start.sync_detailed(
client=self.api_client,
json_body=request,
)
)
)
return handler_error_and_return(response)

assert isinstance(workflow_start_response, WorkflowStartResponse)
return workflow_start_response.workflow_run_id
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need unset_to_none here. I don't see anything that could be unset?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be:

        workflow_start_response = handler_error_and_return(
                post_api_v1_workflow_start.sync_detailed(
                    client=self.api_client,
                    json_body=request,
                )
            )

        if workflow_start_response is not None and isinstance(workflow_start_response, WorkflowStartResponse):
            return workflow_start_response.workflow_run_id
        else:
            # something went terribly wrong

@N-give N-give merged commit 8a909d3 into main Mar 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants