Skip to content

Commit

Permalink
Help mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Dec 12, 2023
1 parent 00f3701 commit 583b6aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions altair/utils/mimebundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@ def spec_to_mimebundle(

# Default to the embed options set by alt.renderers.set_embed_options
if embed_options is None:
embed_options = renderers.options.get("embed_options", {})
final_embed_options = renderers.options.get("embed_options", {})
else:
final_embed_options = embed_options

embed_options = preprocess_embed_options(embed_options)
embed_options = preprocess_embed_options(final_embed_options)

if format in ["png", "svg", "pdf", "vega"]:
format = cast(Literal["png", "svg", "pdf", "vega"], format)
Expand Down

0 comments on commit 583b6aa

Please sign in to comment.