[PR #46] [MERGED] Add default type to generic state #72

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

📋 Pull Request Information

Original PR: https://github.com/run-llama/workflows-py/pull/46
Author: @logan-markewich
Created: 8/5/2025
Status: Merged
Merged: 8/6/2025
Merged by: @masci

Base: mainHead: logan/fix_type_annotation


📝 Commits (1)

  • bd91d2b Add default type to generic state

📊 Changes

3 files changed (+10 additions, -3 deletions)

View changed files

📝 pyproject.toml (+2 -1)
📝 src/workflows/context/state_store.py (+6 -2)
📝 uv.lock (+2 -0)

📄 Description

Since we made the Context a generic, mypy will complain if you don't provide a type annotation (and nearly all our docs skip an annotation for the generic)

This PR adds a default to the generic


🔄 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/46 **Author:** [@logan-markewich](https://github.com/logan-markewich) **Created:** 8/5/2025 **Status:** ✅ Merged **Merged:** 8/6/2025 **Merged by:** [@masci](https://github.com/masci) **Base:** `main` ← **Head:** `logan/fix_type_annotation` --- ### 📝 Commits (1) - [`bd91d2b`](https://github.com/run-llama/workflows-py/commit/bd91d2b2c0f659c4a9601b0d9181b72abc8aedb8) Add default type to generic state ### 📊 Changes **3 files changed** (+10 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `pyproject.toml` (+2 -1) 📝 `src/workflows/context/state_store.py` (+6 -2) 📝 `uv.lock` (+2 -0) </details> ### 📄 Description Since we made the `Context` a generic, mypy will complain if you don't provide a type annotation (and nearly all our docs skip an annotation for the generic) This PR adds a default to the generic --- <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:29 -05:00
yindo closed this issue 2026-02-16 02:16:29 -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#72