Fix syntax for with statement with multiple context managers
@@ -107,9 +107,7 @@ def _spec_to_mimebundle_with_engine(spec, format, mode, **kwargs):
vl_version = "_".join(SCHEMA_VERSION.split(".")[:2])
# Turn off the data transformer until the following issue is resolved
# https://github.com/vega/vl-convert/issues/31#
- with (
- data_transformers.enable("default") and data_transformers.disable_max_rows()
- ):
+ with data_transformers.enable("default"), data_transformers.disable_max_rows():
if format == "vega":
vg = vlc.vegalite_to_vega(spec, vl_version=vl_version)
return {"application/vnd.vega.v5+json": vg}
