mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-07-31 02:40:02 +00:00
✨ 重构函数信息获取逻辑;移除示例测试用例文件
This commit is contained in:
@ -1,20 +0,0 @@
|
||||
def example_function(num: int, text: str, is_a: bool) -> str:
|
||||
"""这是一个示例描述
|
||||
|
||||
Args:
|
||||
num (int): 描述整数
|
||||
text (str): 文本类型
|
||||
is_a (bool): 布尔类型
|
||||
|
||||
Returns:
|
||||
str: 消息
|
||||
"""
|
||||
return "-"
|
||||
|
||||
|
||||
class TestPlugin:
|
||||
def test_get_function_info(self):
|
||||
from nonebot_plugin_marshoai.plugin import get_function_info
|
||||
|
||||
func_info = get_function_info(example_function)
|
||||
print(func_info)
|
Reference in New Issue
Block a user