Merge pull request #6 from iorisa/feature/annotation

fixbug: annotation
This commit is contained in:
send18 2023-08-29 20:59:14 +08:00 committed by GitHub
commit 0a329c936c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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