fixbug: Optional not working

This commit is contained in:
莘权 马 2024-08-06 15:33:25 +08:00
parent 284699224e
commit 9086cccc49

View file

@ -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"}