fix: postpone jmcomic type annotation evaluation - #62
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideDefers evaluation of jmcomic-related type annotations so the plugin imports cleanly when jmcomic is not installed, shifting failures from import-time to runtime availability checks. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
[2026-06-09 04:34:36.902] [Core] 这个提交应该能修复这个问题 |
还在等合并 |
|
2.6.7应该不会报这个错误了 |
|
会报的,我是用 docker的,镜像更新后,重新创建容器,这个插件会报这个错 |
|
我有个定时更新镜像的任务,只要更新一次就报一次,不是之前那个名的问题,from future import annotations这个应该能解决 |
|
最新版本依然加载失败 |
Avoid import-time TypeError when jmcomic is absent by postponing evaluation of JmOption | None annotations. This lets the plugin import cleanly and report jmcomic as unavailable at runtime instead of failing during module import.
Summary by Sourcery
Bug Fixes: