refine code

This commit is contained in:
geekan 2024-01-05 20:23:05 +08:00
parent 2018c06cce
commit a63571ee30
2 changed files with 1 additions and 4 deletions

View file

@ -1,8 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time : 2023/9/12 17:45
@Author : fisherdeng
@File : generate_questions.py
"""
from metagpt.actions import Action
@ -23,5 +21,5 @@ class GenerateQuestions(Action):
name: str = "GenerateQuestions"
async def run(self, context):
async def run(self, context) -> ActionNode:
return await QUESTIONS.fill(context=context, llm=self.llm)

View file

@ -20,7 +20,6 @@ async def test_mermaid(engine):
# ink prerequisites: connected to internet
# playwright prerequisites: playwright install --with-deps chromium
assert check_cmd_exists("npm") == 0
assert CONFIG.PYPPETEER_EXECUTABLE_PATH
CONFIG.mermaid_engine = engine
save_to = CONFIG.git_repo.workdir / f"{CONFIG.mermaid_engine}/1"