Skip to content

Fix Python reference bugs#55

Open
trevoryao wants to merge 1 commit intotemporalio:mainfrom
trevoryao:fix/python-reference-bugs
Open

Fix Python reference bugs#55
trevoryao wants to merge 1 commit intotemporalio:mainfrom
trevoryao:fix/python-reference-bugs

Conversation

@trevoryao
Copy link

@trevoryao trevoryao commented Mar 23, 2026

Summary

Fixes three bugs in the Python SDK reference documents:

  • references/python/determinism.md: Changed workflow.new_random() to workflow.random() in the safe alternatives table. The correct API is workflow.random(), which is also used correctly in the best practices section of the same file.

  • references/python/testing.md: Removed the workflow_id= keyword argument in WorkflowHistory.from_json(workflow_id=str(uuid.uuid4()), history_json). This is a Python syntax error — a keyword argument cannot precede a positional argument. The first parameter is positional (workflow_id), so it should be passed without the keyword when followed by a positional history_json.

  • references/python/ai-patterns.md: Fixed cross-reference from references/core/ai-integration.md to references/core/ai-patterns.md, which is the file that actually exists.

@trevoryao trevoryao requested a review from a team as a code owner March 23, 2026 19:15
@CLAassistant
Copy link

CLAassistant commented Mar 23, 2026

CLA assistant check
All committers have signed the CLA.

@trevoryao trevoryao force-pushed the fix/python-reference-bugs branch from 068cd91 to 38300fb Compare March 23, 2026 19:20
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