[PR #7] [MERGED] avoid pydantic deprecations #42

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

📋 Pull Request Information

Original PR: https://github.com/run-llama/workflows-py/pull/7
Author: @AstraBert
Created: 6/17/2025
Status: Merged
Merged: 6/19/2025
Merged by: @masci

Base: mainHead: clelia/events-type-annotations-and-pydantic-deprecated-corrections


📝 Commits (5)

  • 261f0fa Adjusting some type annotations and switching to the deprecated model_fields to pydantic_fields
  • 305dbcc updates following discussion
  • cbdd39e configdict - sorry ,:)
  • f0edf11 linting
  • 8e1c593 Apply suggestions from code review

📊 Changes

2 files changed (+367 additions, -364 deletions)

View changed files

📝 src/workflows/events.py (+6 -3)
📝 uv.lock (+361 -361)

📄 Description

I switched from the deprecated model_fields in Pydantic BaseModels to __class__.model_fields


🔄 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/7 **Author:** [@AstraBert](https://github.com/AstraBert) **Created:** 6/17/2025 **Status:** ✅ Merged **Merged:** 6/19/2025 **Merged by:** [@masci](https://github.com/masci) **Base:** `main` ← **Head:** `clelia/events-type-annotations-and-pydantic-deprecated-corrections` --- ### 📝 Commits (5) - [`261f0fa`](https://github.com/run-llama/workflows-py/commit/261f0fa307ee90045d7c20e3fe6266a4d3d26ac3) Adjusting some type annotations and switching to the deprecated model_fields to __pydantic_fields__ - [`305dbcc`](https://github.com/run-llama/workflows-py/commit/305dbcc8136fdc74840e4657bc758c48549239b5) updates following discussion - [`cbdd39e`](https://github.com/run-llama/workflows-py/commit/cbdd39ea43722a9675fae01eefa9640949a27627) configdict - sorry ,:) - [`f0edf11`](https://github.com/run-llama/workflows-py/commit/f0edf118eca4bd8630c5cffc9148d604c8c07a48) linting - [`8e1c593`](https://github.com/run-llama/workflows-py/commit/8e1c59353f523b69b4f688adcd261c1682f614ac) Apply suggestions from code review ### 📊 Changes **2 files changed** (+367 additions, -364 deletions) <details> <summary>View changed files</summary> 📝 `src/workflows/events.py` (+6 -3) 📝 `uv.lock` (+361 -361) </details> ### 📄 Description I switched from the deprecated `model_fields` in Pydantic BaseModels to `__class__.model_fields` --- <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:21 -05:00
yindo closed this issue 2026-02-16 02:16:21 -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#42