mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-05 14:55:18 +02:00
fixbug: Optional not working
This commit is contained in:
parent
284699224e
commit
9086cccc49
1 changed files with 1 additions and 0 deletions
|
|
@ -306,6 +306,7 @@ def test_optional():
|
|||
mapping = {
|
||||
"Logic Analysis": (Optional[List[Tuple[str, str]]], Field(default=None)),
|
||||
"Task list": (Optional[List[str]], None),
|
||||
"Plan": (Optional[str], ""),
|
||||
"Anything UNCLEAR": (Optional[str], None),
|
||||
}
|
||||
m = {"Anything UNCLEAR": "a"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue