Skip to content

Commit 759a782

Browse files
committed
0.0.22
1 parent e9cef6f commit 759a782

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

chartlets.py/chartlets/callback.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ def _annotation_to_json_schema(annotation: Any) -> dict:
190190
return {
191191
"type": "array",
192192
}
193+
elif issubclass(annotation, list):
194+
try:
195+
return {"type": "array"}
196+
except KeyError:
197+
pass
193198
else:
194199
type_name = (
195200
annotation.__name__ if hasattr(annotation, "__name__") else str(annotation)

0 commit comments

Comments
 (0)