We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a358ed2 commit 62eb6b7Copy full SHA for 62eb6b7
src/py/kaleido/kaleido.py
@@ -313,7 +313,7 @@ async def calc_fig(
313
`write_fig` does, although its arguments are a subset of those of `write_fig`.
314
This function is currently just meant to bridge the old and new API.
315
"""
316
- if not hasattr(fig, "to_dict") or isinstance(fig, Iterable):
+ if not hasattr(fig, "to_dict") and isinstance(fig, Iterable):
317
raise TypeError("Calc fig can not process multiple images at a time.")
318
spec, full_path = build_fig_spec(fig, path, opts)
319
tab = await self._get_kaleido_tab()
0 commit comments