Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Nov 22, 2024
1 parent 2525c44 commit f5e5e26
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion altair/vegalite/v5/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def jupyter_renderer(spec: dict, **metadata):
JupyterChart.enable_offline(offline=offline) # type: ignore[attr-defined]

# propagate embed options
embed_options = metadata.get("embed_options", None)
embed_options = metadata.get("embed_options")

# Need to ignore attr-defined mypy rule because mypy doesn't see _repr_mimebundle_
# conditionally defined in AnyWidget
Expand Down
4 changes: 2 additions & 2 deletions tests/utils/test_to_values_narwhals.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import re
import sys
from datetime import datetime

import narwhals.stable.v1 as nw
import pandas as pd
import pytest

from tests import skip_requires_pyarrow

try:
import pyarrow as pa
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import io
import json
import sys
import warnings

import narwhals.stable.v1 as nw
Expand All @@ -13,6 +12,7 @@
sanitize_narwhals_dataframe,
sanitize_pandas_dataframe,
)
from tests import skip_requires_pyarrow

try:
import pyarrow as pa
Expand Down
9 changes: 3 additions & 6 deletions tests/vegalite/v5/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
import re
import sys
import tempfile
from datetime import date
from datetime import date, datetime
from importlib.metadata import version as importlib_version
from typing import Any

import duckdb
import jsonschema
Expand All @@ -24,15 +25,13 @@
import altair as alt
from altair.utils.core import use_signature
from altair.utils.schemapi import Optional, SchemaValidationError, Undefined
from tests import skip_requires_pyarrow, skip_requires_vl_convert, slow
from tests import skip_requires_pyarrow

try:
import vl_convert as vlc
except ImportError:
vlc = None

ibis.set_backend("polars")

PANDAS_VERSION = Version(importlib_version("pandas"))


Expand Down Expand Up @@ -529,8 +528,6 @@ def test_when_labels_position_based_on_condition() -> None:
import numpy as np
import pandas as pd

from altair.utils.schemapi import SchemaValidationError

rand = np.random.RandomState(42)
df = pd.DataFrame({"xval": range(100), "yval": rand.randn(100).cumsum()})

Expand Down

0 comments on commit f5e5e26

Please sign in to comment.