From bce261fd1971ace4a690dcf52b2ef4e1b0bb1f7c Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Tue, 3 Sep 2024 14:51:57 +0100 Subject: [PATCH] version compat --- narwhals/dependencies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/narwhals/dependencies.py b/narwhals/dependencies.py index c0c98cd57..2cd9f0983 100644 --- a/narwhals/dependencies.py +++ b/narwhals/dependencies.py @@ -125,7 +125,7 @@ def is_duckdb_relation(df: Any) -> TypeGuard[duckdb.DuckDBPyRelation]: def is_ibis_table(df: Any) -> TypeGuard[ibis.Table]: """Check whether `df` is a Ibis Table without importing Ibis.""" - return (ibis := get_ibis()) is not None and isinstance(df, ibis.expr.dtypes.Table) + return (ibis := get_ibis()) is not None and isinstance(df, ibis.expr.types.Table) def is_polars_dataframe(df: Any) -> TypeGuard[pl.DataFrame]: