mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-02 14:45:17 +02:00
fixbug: annotation
This commit is contained in:
parent
0aaf04100c
commit
ef6ec8c8c7
3 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
@File : skill_action.py
|
||||
@Desc : Call learned skill
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
import ast
|
||||
import importlib
|
||||
import traceback
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue