-
Notifications
You must be signed in to change notification settings - Fork 0
chore: sync workflow templates #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
e8a0b93
37f3f2e
bb85ed8
4cabac9
8ff6273
993aa7a
171a85f
7d6aa1b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -6,23 +6,22 @@ | |||||
| python scripts/langchain/issue_optimizer.py --input-file issue.md --json | ||||||
| """ | ||||||
|
|
||||||
| from __future__ import annotations | ||||||
|
|
||||||
| import argparse | ||||||
| import json | ||||||
| import re | ||||||
| import sys | ||||||
| from dataclasses import dataclass | ||||||
| from pathlib import Path | ||||||
| from typing import Any | ||||||
|
|
||||||
| from pydantic import BaseModel, ConfigDict, Field | ||||||
|
||||||
| from pydantic import BaseModel, ConfigDict, Field | |
| from pydantic import BaseModel, ConfigDict, Field |
Check failure on line 24 in scripts/langchain/issue_optimizer.py
GitHub Actions / Python CI / lint-ruff
Ruff (I001)
scripts/langchain/issue_optimizer.py:9:1: I001 Import block is un-sorted or un-formatted
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -6,25 +6,24 @@ | |||||
| python scripts/langchain/pr_verifier.py --context-file verifier-context.md --json | ||||||
| """ | ||||||
|
|
||||||
| from __future__ import annotations | ||||||
|
|
||||||
| import argparse | ||||||
| import json | ||||||
| import logging | ||||||
| import os | ||||||
| import re | ||||||
| import sys | ||||||
| from dataclasses import dataclass | ||||||
| from pathlib import Path | ||||||
| from typing import Literal | ||||||
|
|
||||||
| from pydantic import BaseModel, Field | ||||||
|
||||||
| from pydantic import BaseModel, Field | |
| from pydantic import BaseModel, Field |
Check failure on line 26 in scripts/langchain/pr_verifier.py
GitHub Actions / Python CI / lint-ruff
Ruff (I001)
scripts/langchain/pr_verifier.py:9:1: I001 Import block is un-sorted or un-formatted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This refactoring changes the error handling behavior. The original code used getattr with a default of None, which would gracefully handle the case where HumanMessage doesn't exist in the module. The new code directly accesses lc_messages.HumanMessage, which will raise an AttributeError (not caught by the ModuleNotFoundError handler) if HumanMessage doesn't exist. While unlikely in practice since HumanMessage is a core class, this represents a functional change in error handling that deviates from the defensive programming pattern used in the original code.