Skip to content

Use datetime.timedelta in openai_agents samples#312

Merged
brianstrauch merged 1 commit into
mainfrom
fix-workflow-timedelta
May 21, 2026
Merged

Use datetime.timedelta in openai_agents samples#312
brianstrauch merged 1 commit into
mainfrom
fix-workflow-timedelta

Conversation

@brianstrauch
Copy link
Copy Markdown
Member

@brianstrauch brianstrauch commented May 21, 2026

Summary

  • workflow.timedelta was an incidental re-export from temporalio's old workflow.py module. The refactor in temporalio/sdk-python#1488 split it into a package and dropped that name.
  • Switch the two affected samples (openai_agents/basic/workflows/local_image_workflow.py and openai_agents/reasoning_content/workflows/reasoning_content_workflow.py) to datetime.timedelta, matching the rest of the repo.

Test plan

  • uv run poe lint

🤖 Generated with Claude Code

workflow.timedelta was an incidental re-export from temporalio's
old workflow.py module. The refactor to a workflow package in
temporalio/sdk-python#1488 dropped it, so use datetime.timedelta
directly (matches the rest of the repo).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@brianstrauch brianstrauch requested a review from a team as a code owner May 21, 2026 20:07
@brianstrauch brianstrauch merged commit 0f7d257 into main May 21, 2026
11 checks passed
@brianstrauch brianstrauch deleted the fix-workflow-timedelta branch May 21, 2026 20:17
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.

2 participants