[PR #184] [MERGED] Improve stop event string representation #197

Closed
opened 2026-02-16 02:16:54 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/workflows-py/pull/184
Author: @adrianlyjak
Created: 11/1/2025
Status: Merged
Merged: 11/1/2025
Merged by: @adrianlyjak

Base: mainHead: adrian/stop-event-repr


📝 Commits (1)

  • 822670b Improve stop event string representation

📊 Changes

2 files changed (+24 additions, -6 deletions)

View changed files

📝 src/workflows/events.py (+7 -0)
📝 tests/test_event.py (+17 -6)

📄 Description

Make StopEvent's easier to debug. Not sure there's a background to the str( conversion, but seems like at least the repr should show all the stop event's values and clarify what the class is:

before:

> StopEvent(foo="bar", result=42)
42

after:

> StopEvent(foo="bar", result=42)
StopEvent(foo='bar', result=42)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/workflows-py/pull/184 **Author:** [@adrianlyjak](https://github.com/adrianlyjak) **Created:** 11/1/2025 **Status:** ✅ Merged **Merged:** 11/1/2025 **Merged by:** [@adrianlyjak](https://github.com/adrianlyjak) **Base:** `main` ← **Head:** `adrian/stop-event-repr` --- ### 📝 Commits (1) - [`822670b`](https://github.com/run-llama/workflows-py/commit/822670baf51fa6bddfd7f81b2d7450dc5dec4434) Improve stop event string representation ### 📊 Changes **2 files changed** (+24 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/workflows/events.py` (+7 -0) 📝 `tests/test_event.py` (+17 -6) </details> ### 📄 Description Make StopEvent's easier to debug. Not sure there's a background to the `str(` conversion, but seems like at least the repr should show all the stop event's values and clarify what the class is: before: ``` > StopEvent(foo="bar", result=42) 42 ``` after: ``` > StopEvent(foo="bar", result=42) StopEvent(foo='bar', result=42) ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 02:16:54 -05:00
yindo closed this issue 2026-02-16 02:16:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/workflows-py#197