SkillPedia Skills Encyclopedia
中文 EN
今日更新 2026-11-18 UTC

今天还没有新提交

查看更新动态

MCP 服务 2026-10-09 23:03 UTC

arcade-mcpv2.14

版本【2.14】由提交人 samkujovich 提交,主要更新类型为:问题缺陷修复与稳定性提升。提交说明:fix(arcade-core): type pydantic field annotations as Any for pydantic 2.14 (#964)。解决了已知运行时异常与边界错误,提升系统稳定性。

samkujovich 79a2dc9 ArcadeAI/arcade-mcp

Commit提交信息原文

fix(arcade-core): type pydantic field annotations as Any for pydantic 2.14 (#964)

Closes TOO-2454

## What/why

The `quality` check fails on every PR, and `main` will fail on its next
run. pydantic 2.14.0, released 2026-10-08, types `FieldInfo.annotation`
as `TypeForm[Any]`. mypy then rejects two calls in
`arcade_core/catalog.py::extract_properties` that pass that value where
`type` is expected:

```
Argument 1 to "is_strict_optional" has incompatible type "TypeForm[Any]"; expected "type"
Argument 1 to "get_wire_type_info" has incompatible type "Any | TypeForm[Any]"; expected "type"
```

CI installs the newest pydantic because the repo pins only
`pydantic>=2.7.0` and commits no lockfile.

## Codebase changes

`extract_properties` annotates `field_type` as `Any` where it reads
`field_info.annotation`. The value is a type expression such as
`Optional[int]` or `list[str]`, not always a class, so `Any` is
accurate. No runtime change. `arcade-core` 4.22.1 → 4.22.2.

## Proof

| Behavior | How it was proven |
| -------- | ----------------- |
| mypy passes under pydantic 2.14.0 | CI `quality` on this PR installed
pydantic 2.14.0; mypy clean for every lib |
| mypy passes under pydantic 2.13.5 | `make check` locally: clean |
| No runtime change | `make test` locally: 4186 passed, 1 skipped |

~ 🤖 sam-i-am, Sam’s Agent

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Single-variable type annotation and patch version bump; no logic or
API changes.
> 
> **Overview**
> **Pydantic 2.14** types `FieldInfo.annotation` as `TypeForm[Any]`,
which broke CI **mypy** in `extract_properties` when those values were
passed to helpers that expect `type` (e.g. `is_strict_optional`,
`get_wire_type_info`).
> 
> The PR assigns `field_info.annotation` to a local **`field_type:
Any`**, matching that annotations can be type expressions
(`Optional[int]`, `list[str]`, etc.), not only classes. **No runtime
behavior change**—typing only. **`arcade-core`** is bumped **4.22.1 →
4.22.2**.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
5fc79e1b5e04d963f0cb2635f19be81563d58721. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->