Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Jul 14, 2024
1 parent b52eaca commit 8b4b3db
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions altair/utils/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

import jsonschema
import narwhals.stable.v1 as nw
from narwhals.dependencies import is_pandas_dataframe as _is_pandas_dataframe
from narwhals.dependencies import is_pandas_dataframe
from narwhals.typing import IntoDataFrame

from altair.utils.schemapi import SchemaBase, Undefined

Expand All @@ -43,7 +44,7 @@
import typing as t
from altair.vegalite.v5.schema._typing import StandardType_T as InferredVegaLiteType
from altair.utils._dfi_types import DataFrame as DfiDataFrame
from narwhals.typing import IntoExpr, IntoDataFrame
from narwhals.typing import IntoExpr
import pandas as pd

V = TypeVar("V")
Expand Down Expand Up @@ -638,7 +639,7 @@ def parse_shorthand(
if schema[unescaped_field] in {
nw.Object,
nw.Unknown,
} and _is_pandas_dataframe(nw.to_native(data_nw)):
} and is_pandas_dataframe(nw.to_native(data_nw)):
attrs["type"] = infer_vegalite_type_for_pandas(nw.to_native(column))
else:
attrs["type"] = infer_vegalite_type_for_narwhals(column)
Expand Down

0 comments on commit 8b4b3db

Please sign in to comment.