Skip to content

fix(config)-add-missing-dict-type-to-DEFAULT_VALUE_MAP - #9414

Open
lingyun14beta wants to merge 1 commit into
AstrBotDevs:masterfrom
lingyun14beta:fix(config)-add-missing-dict-type-to-DEFAULT_VALUE_MAP
Open

fix(config)-add-missing-dict-type-to-DEFAULT_VALUE_MAP#9414
lingyun14beta wants to merge 1 commit into
AstrBotDevs:masterfrom
lingyun14beta:fix(config)-add-missing-dict-type-to-DEFAULT_VALUE_MAP

Conversation

@lingyun14beta

@lingyun14beta lingyun14beta commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

修复加载插件 schema 时 dict 类型被报告为"不受支持的配置类型"的问题。

Modifications / 改动点

  • astrbot/core/config/default.py: DEFAULT_VALUE_MAP 添加 "dict": {}
  • This is NOT a breaking change. / 这不是一个破坏性变更。

Screenshots or Test Results / 运行截图或测试结果

image

Checklist / 检查清单

  • 😊 If there are new features added in the PR, I have discussed it with the authors through issues/emails, etc.
    / 如果 PR 中有新加入的功能,已经通过 Issue / 邮件等方式和作者讨论过。

  • 👀 My changes have been well-tested, and "Verification Steps" and "Screenshots" have been provided above.
    / 我的更改经过了良好的测试,并已在上方提供了“验证步骤”和“运行截图”

  • 🤓 I have ensured that no new dependencies are introduced, OR if new dependencies are introduced, they have been added to the appropriate locations in requirements.txt and pyproject.toml.
    / 我确保没有引入新依赖库,或者引入了新依赖库的同时将其添加到 requirements.txtpyproject.toml 文件相应位置。

  • 😮 My changes do not introduce malicious code.
    / 我的更改没有引入恶意代码。

Summary by Sourcery

Bug Fixes:

  • Prevent dict-typed plugin configuration options from being reported as unsupported by adding a default mapping for the dict type.

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. area:core The bug / feature is about astrbot's core, backend labels Jul 27, 2026
@lingyun14beta lingyun14beta changed the title Update default.py fix(config)-add-missing-dict-type-to-DEFAULT_VALUE_MAP Jul 27, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

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

Labels

area:core The bug / feature is about astrbot's core, backend size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant