fixbug: annotation

This commit is contained in:
莘权 马 2023-08-29 20:52:45 +08:00
parent 0aaf04100c
commit ef6ec8c8c7
3 changed files with 7 additions and 3 deletions

View file

@ -5,15 +5,18 @@
@Author : mashenquan
@File : write_teaching_plan.py
@Desc: Write teaching plan demo
```
export PYTHONPATH=$PYTHONPATH:$PWD
python examples/write_teaching_plan.py <lesson filename> --language=Chinese --teaching_language=English
```
"""
import asyncio
from pathlib import Path
import sys
from metagpt.config import CONFIG
sys.path.append(str(Path(__file__).resolve().parent.parent))
import aiofiles
import fire
from metagpt.logs import logger

View file

@ -6,6 +6,7 @@
@File : action.py
@Modified By: mashenquan, 2023/8/20. Add function return annotations.
"""
from __future__ import annotations
from abc import ABC
from typing import Optional

View file

@ -6,7 +6,7 @@
@File : skill_action.py
@Desc : Call learned skill
"""
from __future__ import annotations
import ast
import importlib
import traceback