We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 277c5dc commit ef0f5b7Copy full SHA for ef0f5b7
1 file changed
src/py/kaleido/kaleido.py
@@ -405,15 +405,11 @@ async def _temp_generator():
405
"topojson": topojson,
406
}
407
408
- return cast(
409
- "bytes",
410
- (
411
- await self.write_fig_from_object(
412
- generator=_temp_generator(),
413
- cancel_on_error=True,
414
- _write=False,
415
- )
416
- )[0],
+ res = await self.write_fig_from_object(
+ generator=_temp_generator(),
+ cancel_on_error=True,
+ _write=False,
417
)
+ return cast("bytes", res[0])
418
# Complex type mechanics. Exceptions will raise. None not possible.
419
# Bytes only option
0 commit comments