pydantic.errors.PydanticUserError: A non-annotated attribute was detected: fortune_path = WindowsPath('C:/新建文件夹/HoshinoBot-master/hoshino/modules/huannai_plugin_fortune/resource'). All model fields require a type annotation; if fortune_path is not meant to be a field, you may be able to resolve this error by annotating it as a ClassVar or updating model_config['ignored_types'].
ERROR: Failed to import "hoshino.modules.huannai_plugin_fortune.config", error: A non-annotated attribute was detected: fortune_path = WindowsPath('C:/新建文件夹/HoshinoBot-master/hoshino/modules/huannai_plugin_fortune/resource'). All model fields require a type annotation; if fortune_path is not meant to be a field, you may be able to resolve this error by annotating it as a ClassVar or updating model_config['ignored_types'].
具体报错信息,是不是需要注释什么?
pydantic.errors.PydanticUserError: A non-annotated attribute was detected:
fortune_path = WindowsPath('C:/新建文件夹/HoshinoBot-master/hoshino/modules/huannai_plugin_fortune/resource')
. All model fields require a type annotation; iffortune_path
is not meant to be a field, you may be able to resolve this error by annotating it as aClassVar
or updatingmodel_config['ignored_types']
.ERROR: Failed to import "hoshino.modules.huannai_plugin_fortune.config", error: A non-annotated attribute was detected:
fortune_path = WindowsPath('C:/新建文件夹/HoshinoBot-master/hoshino/modules/huannai_plugin_fortune/resource')
. All model fields require a type annotation; iffortune_path
is not meant to be a field, you may be able to resolve this error by annotating it as aClassVar
or updatingmodel_config['ignored_types']
. 具体报错信息,是不是需要注释什么?