Skip to content

Commit 73656f1

Browse files
committed
fix(DRAFT): extend is_eager_namespace
1 parent bf18326 commit 73656f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

narwhals/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,11 +1402,11 @@ def is_compliant_expr(
14021402
return hasattr(obj, "__narwhals_expr__")
14031403

14041404

1405-
# NOTE: Temporary - just to introduce a path for the Arrow WIP
1405+
# NOTE: Temporary - just to introduce a path for the (Arrow|PandasLike) WIP
14061406
def is_eager_namespace(
14071407
obj: EagerNamespace[EagerDataFrameT, EagerSeriesT] | Any,
14081408
) -> TypeIs[EagerNamespace[EagerDataFrameT, EagerSeriesT]]:
1409-
return type(obj).__name__ == "ArrowNamespace"
1409+
return type(obj).__name__ in {"ArrowNamespace", "PandasLikeNamespace"}
14101410
# return all(hasattr(obj, name) for name in ("selectors", "_expr", "_series")) # noqa: ERA001
14111411

14121412

0 commit comments

Comments
 (0)