Skip to content

🏷️ types: move to ty#619

Draft
SigureMo wants to merge 46 commits intomainfrom
move-to-ty
Draft

🏷️ types: move to ty#619
SigureMo wants to merge 46 commits intomainfrom
move-to-ty

Conversation

@SigureMo
Copy link
Copy Markdown
Member

@SigureMo SigureMo commented Dec 20, 2025

动机

切不了,根本切不了,比 pyright 差远了,连 astral-sh/ty#2116 这种 case 都不支持,推出来全变 Unknown 了,TypedDict 支持也很差,只是切一半了不舍得全部回退,提个 PR 暂存,至少等 astral-sh/ty#2116 修复再切,不然没法用,Fetcher 返回值全变 Unknown(被 MaxRetry 装饰),都裸奔了

另外根据 review 反馈,同步合并最新 main,并继续跟进 ty 的最新版本,确认在当前代码上是否还有新增类型问题。

后续又根据 review 反馈再次解决了与最新 main 的冲突;这次上游同时移除了 MCP 支持,因此这条分支在保留 ty 迁移结果的同时,也同步吸收了该上游变更。

最后又继续根据 review 反馈再次合并最新 main,并将 ty 升级到当前最新版,同时清理新版 ty 暴露出的过时 ignore。

解决方案

  • 多次同步合并最新的 main
  • 将开发依赖中的 ty 升级到当前最新版 0.0.29
  • 更新 uv.lock
  • 移除新版 ty 暴露出的 4 处过时 ty: ignore[invalid-await]
  • 重新验证 tyrufftyposbuild 和定向测试,确认升级后没有新增类型问题
  • 解决与最新 main 的冲突,并按上游方向移除 MCP 相关入口、配置和锁文件内容

类型

  • ✨ feat: 添加新功能
  • 🐛 fix: 修复 bug
  • 📝 docs: 对文档进行修改
  • ♻️ refactor: 代码重构(既不是新增功能,也不是修改 bug 的代码变动)
  • ⚡ perf: 提高性能的代码修改
  • 🧑‍💻 dx: 优化开发体验
  • 🔨 workflow: 工作流变动
  • 🏷️ types: 类型声明修改
  • 🚧 wip: 工作正在进行中
  • ✅ test: 测试用例添加及修改
  • 🔨 build: 影响构建系统或外部依赖关系的更改
  • 👷 ci: 更改 CI 配置文件和脚本
  • ❓ chore: 其它不涉及源码以及测试的修改
  • ⬆️ deps: 依赖项修改
  • 🔖 release: 发布新版本

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Dec 20, 2025

Merging this PR will not alter performance

✅ 32 untouched benchmarks


Comparing move-to-ty (5906a77) with main (c69f297)

Open in CodSpeed

@SigureMo

This comment was marked as spam.

@SigureMo

This comment was marked as spam.

@SigureMo

This comment was marked as spam.

@SigureMo
Copy link
Copy Markdown
Member Author

喵的,不小心加载了 nyako skill 直接这样了

@SigureMo
Copy link
Copy Markdown
Member Author

@copilot 然后再把 ty 升级到最新版

# Conflicts:
#	src/yutto/mcp_server.py
#	uv.lock

Co-authored-by: SigureMo <38436475+SigureMo@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 27, 2026

@copilot 解决下冲突吧

已处理,冲突在 a22ef65 解决并推上去了;这次按 main 的方向吸收了 MCP 移除,同时保留了这条分支的 ty 变更,并重新跑过 ty、ruff、typos、build 和定向测试。无 UI 变更,无截图。

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • releases.astral.sh
    • Triggering command: /home/REDACTED/.local/bin/uv uv sync --all-extras --dev -p 3.10 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@SigureMo
Copy link
Copy Markdown
Member Author

@copilot merge 最新 main,并升级 ty 到最新版,注意修复全部类型问题

Copilot AI and others added 3 commits March 28, 2026 03:00
Co-authored-by: SigureMo <38436475+SigureMo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/yutto-dev/yutto/sessions/9bdbd0ee-67d7-4a69-8338-0b9c43d20ab3

Co-authored-by: SigureMo <38436475+SigureMo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/yutto-dev/yutto/sessions/9bdbd0ee-67d7-4a69-8338-0b9c43d20ab3

Co-authored-by: SigureMo <38436475+SigureMo@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 28, 2026

@copilot 然后再把 ty 升级到最新版

已处理,见 40bd376ty 已升级到最新版 0.0.26,uv.lock 已同步更新,并修掉了升级后新增的 3 个类型问题;已重新跑过 ty、ruff、typos、build 和定向测试。无 UI 变更,无截图。

@copilot merge 最新 main,并升级 ty 到最新版,注意修复全部类型问题

已处理,见 40bd376:已 merge 最新 main,并将 ty 升级到最新版 0.0.26;针对新版 ty 暴露的类型问题做了最小修复,随后重新通过 ty、ruff、typos、build 和定向测试。无 UI 变更,无截图。

@SigureMo
Copy link
Copy Markdown
Member Author

SigureMo commented Apr 4, 2026

@copilot merge 最新 main + 更新 ty 到最新版本

Copilot AI and others added 2 commits April 4, 2026 05:33
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.

Co-authored-by: SigureMo <38436475+SigureMo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/yutto-dev/yutto/sessions/ac362065-5774-4bb1-bd67-bfd7c182aead

Co-authored-by: SigureMo <38436475+SigureMo@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 4, 2026

@copilot merge 最新 main + 更新 ty 到最新版本

已处理,见 0dd7109:已 merge 最新 main,并将 ty 升级到当前最新版 0.0.28;uv.lock 已同步更新,并重新通过 ty、ruff、typos、build 和定向测试。无 UI 变更,无截图。

@SigureMo
Copy link
Copy Markdown
Member Author

SigureMo commented Apr 6, 2026

@copilot merge 最新 main + 更新 ty 到最新版本

Copilot AI and others added 2 commits April 6, 2026 10:30
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.

Co-authored-by: SigureMo <38436475+SigureMo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/yutto-dev/yutto/sessions/99057359-0b16-4b23-85b5-e330adf7b89f

Co-authored-by: SigureMo <38436475+SigureMo@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 6, 2026

@copilot merge 最新 main + 更新 ty 到最新版本

已处理,见 58a39b6:已 merge 最新 main,并将 ty 升级到当前最新版 0.0.29;uv.lock 已同步更新,并顺手移除了新版 ty 暴露出的 4 处过时 ignore,随后重新通过 ty、ruff、typos、build 和定向测试。无 UI 变更,无截图。

@SigureMo
Copy link
Copy Markdown
Member Author

@copilot merge 最新 main + 更新 ty 到最新版本

Copilot AI and others added 2 commits April 16, 2026 12:25
Co-authored-by: SigureMo <38436475+SigureMo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/yutto-dev/yutto/sessions/1d1df8dc-6920-4a5a-ac07-2bc232765100

Co-authored-by: SigureMo <38436475+SigureMo@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 16, 2026

@copilot merge 最新 main + 更新 ty 到最新版本

已处理,见 5906a77:已 merge 最新 main,并将 ty 升级到当前最新版 0.0.31;uv.lock 已同步更新,并重新通过 ty、ruff、typos、build 和定向测试。无 UI 变更,无截图。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants